Java Doc for SAX2DTM2.java in  » XML » xalan » org » apache » xml » dtm » ref » sax2dtm » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xalan » org.apache.xml.dtm.ref.sax2dtm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xml.dtm.ref.DTMDefaultBase
      org.apache.xml.dtm.ref.DTMDefaultBaseTraversers
         org.apache.xml.dtm.ref.DTMDefaultBaseIterators
            org.apache.xml.dtm.ref.sax2dtm.SAX2DTM
               org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2

All known Subclasses:   org.apache.xalan.xsltc.dom.SAXImpl,
SAX2DTM2
public class SAX2DTM2 extends SAX2DTM (Code)
SAX2DTM2 is an optimized version of SAX2DTM which is used in non-incremental situation. It is used as the super class of the XSLTC SAXImpl. Many of the interfaces in SAX2DTM and DTMDefaultBase are overridden in SAX2DTM2 in order to allow fast, efficient access to the DTM model. Some nested iterators in DTMDefaultBaseIterators are also overridden in SAX2DTM2 for performance reasons.

Performance is the biggest consideration in the design of SAX2DTM2. To make the code most efficient, the incremental support is dropped in SAX2DTM2, which means that you should not use it in incremental situation. To reduce the overhead of pulling data from the DTM model, a few core interfaces in SAX2DTM2 have direct access to the internal arrays of the SuballocatedIntVectors.

The design of SAX2DTM2 may limit its extensibilty. If you have a reason to extend the SAX2DTM model, please extend from SAX2DTM instead of this class.

TODO: This class is currently only used by XSLTC. We need to investigate the possibility of also using it in Xalan-J Interpretive. Xalan's performance is likely to get an instant boost if we use SAX2DTM2 instead of SAX2DTM in non-incremental case.

%MK% The code in this class is critical to the XSLTC_DTM performance. Be very careful when making changes here!


Inner Class :final public class ChildrenIterator extends InternalAxisIteratorBase
Inner Class :final public class ParentIterator extends InternalAxisIteratorBase
Inner Class :final public class TypedChildrenIterator extends InternalAxisIteratorBase
Inner Class :public class TypedRootIterator extends RootIterator
Inner Class :public class FollowingSiblingIterator extends InternalAxisIteratorBase
Inner Class :final public class TypedFollowingSiblingIterator extends FollowingSiblingIterator
Inner Class :final public class AttributeIterator extends InternalAxisIteratorBase
Inner Class :final public class TypedAttributeIterator extends InternalAxisIteratorBase
Inner Class :public class PrecedingSiblingIterator extends InternalAxisIteratorBase
Inner Class :final public class TypedPrecedingSiblingIterator extends PrecedingSiblingIterator
Inner Class :public class PrecedingIterator extends InternalAxisIteratorBase
Inner Class :final public class TypedPrecedingIterator extends PrecedingIterator
Inner Class :public class FollowingIterator extends InternalAxisIteratorBase
Inner Class :final public class TypedFollowingIterator extends FollowingIterator
Inner Class :public class AncestorIterator extends InternalAxisIteratorBase
Inner Class :final public class TypedAncestorIterator extends AncestorIterator
Inner Class :public class DescendantIterator extends InternalAxisIteratorBase
Inner Class :final public class TypedDescendantIterator extends DescendantIterator
Inner Class :final public class TypedSingletonIterator extends SingletonIterator

Field Summary
final protected static  intTEXT_LENGTH_BITS
     %OPT% If the offset and length of a Text node are within certain limits, we store a bitwise encoded value into an int, using 10 bits (max.
final protected static  intTEXT_LENGTH_MAX
    
final protected static  intTEXT_OFFSET_BITS
    
final protected static  intTEXT_OFFSET_MAX
    
protected  intm_MASK
    
protected  intm_SHIFT
    
protected  intm_blocksize
    
protected  booleanm_buildIdIndex
    
protected  ExtendedType[]m_extendedTypes
    
protected  Vectorm_values
    

Constructor Summary
public  SAX2DTM2(DTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing)
     Construct a SAX2DTM2 object using the default block size.
public  SAX2DTM2(DTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing, int blocksize, boolean usePrevsib, boolean buildIdIndex, boolean newNameTable)
     Construct a SAX2DTM2 object using the given block size.

Method Summary
final public  int_exptype(int identity)
     Override DTMDefaultBase._exptype() by dropping the incremental code.

This one is less efficient than _exptype2.

final public  int_exptype2(int identity)
     The optimized version of DTMDefaultBase._exptype().
final public  int_exptype2Type(int exptype)
    
final public  int_firstch2(int identity)
     The optimized version of DTMDefaultBase._firstch().
final public  int_nextsib2(int identity)
     The optimized version of DTMDefaultBase._nextsib().
final public  int_parent2(int identity)
     The optimized version of DTMDefaultBase._parent().
final public  int_type2(int identity)
     The optimized version of DTMDefaultBase._type().
final protected  intaddNode(int type, int expandedTypeID, int parentIndex, int previousSibling, int dataOrPrefix, boolean canHaveFirstChild)
     Construct the node map from the node.
Parameters:
  type - raw type ID, one of DTM.XXX_NODE.
Parameters:
  expandedTypeID - The expended type ID.
Parameters:
  parentIndex - The current parent index.
Parameters:
  previousSibling - The previous sibling index.
Parameters:
  dataOrPrefix - index into m_data table, or string handle.
Parameters:
  canHaveFirstChild - true if the node can have a first child, falseif it is atomic.
final protected  voidcharactersFlush()
     Check whether accumulated text should be stripped; if not, append the appropriate flavor of text/cdata node.
public  voidcomment(char ch, int start, int length)
     Report an XML comment anywhere in the document.
final protected  voidcopyAttribute(int nodeID, int exptype, SerializationHandler handler)
    
final protected  voidcopyAttributes(int nodeID, SerializationHandler handler)
     Copy attribute nodes from an element .
final protected  StringcopyElement(int nodeID, int exptype, SerializationHandler handler)
     Copy an Element node to a SerializationHandler.
final protected  voidcopyNS(int nodeID, SerializationHandler handler, boolean inScope)
     Copy namespace nodes.
final protected  voidcopyTextNode(int nodeID, SerializationHandler handler)
    
final public  voiddispatchCharactersEvents(int nodeHandle, ContentHandler ch, boolean normalize)
     The optimized version of SAX2DTM.dispatchCharactersEvents(int, ContentHandler, boolean).

Directly call the characters method on the passed ContentHandler for the string-value of the given node (see http://www.w3.org/TR/xpath#data-model for the definition of a node's string-value).

public  voidendDocument()
     Receive notification of the end of the document.
public  voidendElement(String uri, String localName, String qName)
     Receive notification of the end of an element.

By default, do nothing.

final public  intgetExpandedTypeID2(int nodeHandle)
     The optimized version of DTMDefaultBase.getExpandedTypeID(int).
final public  intgetFirstAttribute(int nodeHandle)
     The optimized version of DTMDefaultBase.getFirstAttribute().

Given a node handle, get the index of the node's first attribute.
Parameters:
  nodeHandle - int Handle of the node.

protected  intgetFirstAttributeIdentity(int identity)
     The optimized version of DTMDefaultBase.getFirstAttributeIdentity(int).

Given a node identity, get the index of the node's first attribute.
Parameters:
  identity - int identity of the node.

public  intgetIdForNamespace(String uri)
     Get a prefix either from the uri mapping, or just make one up!
Parameters:
  uri - The namespace URI, which may be null.
public  StringgetLocalName(int nodeHandle)
     Override SAX2DTM.getLocalName() in SAX2DTM2.

Processing for PIs is different. Given a node handle, return its XPath- style localname.

protected  intgetNextAttributeIdentity(int identity)
     The optimized version of DTMDefaultBase.getNextAttributeIdentity(int).

Given a node identity for an attribute, advance to the next attribute.
Parameters:
  identity - int identity of the attribute node.

final protected  intgetNextNamespaceNode2(int baseID)
     Return the next namespace node following the given base node.
public  StringgetNodeName(int nodeHandle)
     The optimized version of SAX2DTM.getNodeName().

Given a node handle, return its DOM-style node name.

final public  StringgetNodeNameX(int nodeHandle)
     The optimized version of SAX2DTM.getNodeNameX().

Given a node handle, return the XPath node name.

public  StringgetNodeValue(int nodeHandle)
     Given a node handle, return its node value.
public  XMLStringgetStringValue(int nodeHandle)
     Override SAX2DTM.getStringValue(int)

This method is only used by Xalan-J Interpretive.

public  StringgetStringValue()
    
final public  StringgetStringValueX(int nodeHandle)
     The optimized version of SAX2DTM.getStringValue(int).

%OPT% This is one of the most often used interfaces.

final protected  intgetTypedAttribute(int nodeHandle, int attType)
     The optimized version of DTMDefaultBase.getTypedAttribute(int, int).

Given a node handle and an expanded type ID, get the index of the node's attribute of that type, if any.
Parameters:
  nodeHandle - int Handle of the node.
Parameters:
  attType - int expanded type ID of the required attribute.

public  voidprocessingInstruction(String target, String data)
     Override the processingInstruction() interface in SAX2DTM2.

%OPT% This one is different from SAX2DTM.processingInstruction() in that we do not use extended types for PI nodes.

public  voidstartDocument()
     Receive notification of the beginning of the document.
public  voidstartElement(String uri, String localName, String qName, Attributes attributes)
     Override SAX2DTM.startElement()

Receive notification of the start of an element.

By default, do nothing.


Field Detail
TEXT_LENGTH_BITS
final protected static int TEXT_LENGTH_BITS(Code)
%OPT% If the offset and length of a Text node are within certain limits, we store a bitwise encoded value into an int, using 10 bits (max. 1024) for length and 21 bits for offset. We can save two SuballocatedIntVector calls for each getStringValueX() and dispatchCharacterEvents() call by doing this.



TEXT_LENGTH_MAX
final protected static int TEXT_LENGTH_MAX(Code)



TEXT_OFFSET_BITS
final protected static int TEXT_OFFSET_BITS(Code)



TEXT_OFFSET_MAX
final protected static int TEXT_OFFSET_MAX(Code)



m_MASK
protected int m_MASK(Code)



m_SHIFT
protected int m_SHIFT(Code)



m_blocksize
protected int m_blocksize(Code)



m_buildIdIndex
protected boolean m_buildIdIndex(Code)



m_extendedTypes
protected ExtendedType[] m_extendedTypes(Code)



m_values
protected Vector m_values(Code)




Constructor Detail
SAX2DTM2
public SAX2DTM2(DTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing)(Code)
Construct a SAX2DTM2 object using the default block size.



SAX2DTM2
public SAX2DTM2(DTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing, int blocksize, boolean usePrevsib, boolean buildIdIndex, boolean newNameTable)(Code)
Construct a SAX2DTM2 object using the given block size.




Method Detail
_exptype
final public int _exptype(int identity)(Code)
Override DTMDefaultBase._exptype() by dropping the incremental code.

This one is less efficient than _exptype2. It is only used during DTM building. _exptype2 is used after the document is fully built.




_exptype2
final public int _exptype2(int identity)(Code)
The optimized version of DTMDefaultBase._exptype().
Parameters:
  identity - A node identity, which must not be equal toDTM.NULL



_exptype2Type
final public int _exptype2Type(int exptype)(Code)
Return the node type from the expanded type



_firstch2
final public int _firstch2(int identity)(Code)
The optimized version of DTMDefaultBase._firstch().
Parameters:
  identity - A node identity, which must not be equal toDTM.NULL



_nextsib2
final public int _nextsib2(int identity)(Code)
The optimized version of DTMDefaultBase._nextsib().
Parameters:
  identity - A node identity, which must not be equal toDTM.NULL



_parent2
final public int _parent2(int identity)(Code)
The optimized version of DTMDefaultBase._parent().
Parameters:
  identity - A node identity, which must not be equal toDTM.NULL



_type2
final public int _type2(int identity)(Code)
The optimized version of DTMDefaultBase._type().
Parameters:
  identity - A node identity, which must not be equal toDTM.NULL



addNode
final protected int addNode(int type, int expandedTypeID, int parentIndex, int previousSibling, int dataOrPrefix, boolean canHaveFirstChild)(Code)
Construct the node map from the node.
Parameters:
  type - raw type ID, one of DTM.XXX_NODE.
Parameters:
  expandedTypeID - The expended type ID.
Parameters:
  parentIndex - The current parent index.
Parameters:
  previousSibling - The previous sibling index.
Parameters:
  dataOrPrefix - index into m_data table, or string handle.
Parameters:
  canHaveFirstChild - true if the node can have a first child, falseif it is atomic. The index identity of the node that was added.



charactersFlush
final protected void charactersFlush()(Code)
Check whether accumulated text should be stripped; if not, append the appropriate flavor of text/cdata node.



comment
public void comment(char ch, int start, int length) throws SAXException(Code)
Report an XML comment anywhere in the document.

This callback will be used for comments inside or outside the document element, including comments in the external DTD subset (if read).


Parameters:
  ch - An array holding the characters in the comment.
Parameters:
  start - The starting position in the array.
Parameters:
  length - The number of characters to use from the array.
throws:
  SAXException - The application may raise an exception.



copyAttribute
final protected void copyAttribute(int nodeID, int exptype, SerializationHandler handler) throws SAXException(Code)
Copy an Attribute node to a SerializationHandler
Parameters:
  nodeID - The node identity
Parameters:
  exptype - The expanded type of the Element node
Parameters:
  handler - The SerializationHandler



copyAttributes
final protected void copyAttributes(int nodeID, SerializationHandler handler) throws SAXException(Code)
Copy attribute nodes from an element .
Parameters:
  nodeID - The Element node identity
Parameters:
  handler - The SerializationHandler



copyElement
final protected String copyElement(int nodeID, int exptype, SerializationHandler handler) throws SAXException(Code)
Copy an Element node to a SerializationHandler.
Parameters:
  nodeID - The node identity
Parameters:
  exptype - The expanded type of the Element node
Parameters:
  handler - The SerializationHandler The qualified name of the Element node.



copyNS
final protected void copyNS(int nodeID, SerializationHandler handler, boolean inScope) throws SAXException(Code)
Copy namespace nodes.
Parameters:
  nodeID - The Element node identity
Parameters:
  handler - The SerializationHandler
Parameters:
  inScope - true if all namespaces in scope should be copied,false if only the namespace declarations should be copied.



copyTextNode
final protected void copyTextNode(int nodeID, SerializationHandler handler) throws SAXException(Code)
Copy the String value of a Text node to a SerializationHandler



dispatchCharactersEvents
final public void dispatchCharactersEvents(int nodeHandle, ContentHandler ch, boolean normalize) throws SAXException(Code)
The optimized version of SAX2DTM.dispatchCharactersEvents(int, ContentHandler, boolean).

Directly call the characters method on the passed ContentHandler for the string-value of the given node (see http://www.w3.org/TR/xpath#data-model for the definition of a node's string-value). Multiple calls to the ContentHandler's characters methods may well occur for a single call to this method.
Parameters:
  nodeHandle - The node ID.
Parameters:
  ch - A non-null reference to a ContentHandler.
Parameters:
  normalize - true if the content should be normalized according tothe rules for the XPathnormalize-spacefunction.
throws:
  SAXException -




endDocument
public void endDocument() throws SAXException(Code)
Receive notification of the end of the document.
throws:
  SAXException - Any SAX exception, possiblywrapping another exception.
See Also:   org.xml.sax.ContentHandler.endDocument



endElement
public void endElement(String uri, String localName, String qName) throws SAXException(Code)
Receive notification of the end of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).


Parameters:
  uri - The Namespace URI, or the empty string if theelement has no Namespace URI or if Namespaceprocessing is not being performed.
Parameters:
  localName - The local name (without prefix), or theempty string if Namespace processing is not beingperformed.
Parameters:
  qName - The qualified XML 1.0 name (with prefix), or theempty string if qualified names are not available.
throws:
  SAXException - Any SAX exception, possiblywrapping another exception.
See Also:   org.xml.sax.ContentHandler.endElement



getExpandedTypeID2
final public int getExpandedTypeID2(int nodeHandle)(Code)
The optimized version of DTMDefaultBase.getExpandedTypeID(int).

This one is only used by DOMAdapter.getExpandedTypeID(int), which is mostly called from the compiled translets.




getFirstAttribute
final public int getFirstAttribute(int nodeHandle)(Code)
The optimized version of DTMDefaultBase.getFirstAttribute().

Given a node handle, get the index of the node's first attribute.
Parameters:
  nodeHandle - int Handle of the node. Handle of first attribute, or DTM.NULL to indicate none exists.




getFirstAttributeIdentity
protected int getFirstAttributeIdentity(int identity)(Code)
The optimized version of DTMDefaultBase.getFirstAttributeIdentity(int).

Given a node identity, get the index of the node's first attribute.
Parameters:
  identity - int identity of the node. Identity of first attribute, or DTM.NULL to indicate none exists.




getIdForNamespace
public int getIdForNamespace(String uri)(Code)
Get a prefix either from the uri mapping, or just make one up!
Parameters:
  uri - The namespace URI, which may be null. The prefix if there is one, or null.



getLocalName
public String getLocalName(int nodeHandle)(Code)
Override SAX2DTM.getLocalName() in SAX2DTM2.

Processing for PIs is different. Given a node handle, return its XPath- style localname. (As defined in Namespaces, this is the portion of the name after any colon character).
Parameters:
  nodeHandle - the id of the node. String Local name of this node.




getNextAttributeIdentity
protected int getNextAttributeIdentity(int identity)(Code)
The optimized version of DTMDefaultBase.getNextAttributeIdentity(int).

Given a node identity for an attribute, advance to the next attribute.
Parameters:
  identity - int identity of the attribute node. Thismust be an attribute node. int DTM node-identity of the resolved attr,or DTM.NULL to indicate none exists.




getNextNamespaceNode2
final protected int getNextNamespaceNode2(int baseID)(Code)
Return the next namespace node following the given base node. The namespace node immediately following the base node.



getNodeName
public String getNodeName(int nodeHandle)(Code)
The optimized version of SAX2DTM.getNodeName().

Given a node handle, return its DOM-style node name. This will include names such as #text or #document.
Parameters:
  nodeHandle - the id of the node. String Name of this node, which may be an empty string.%REVIEW% Document when empty string is possible...%REVIEW-COMMENT% It should never be empty, should it?




getNodeNameX
final public String getNodeNameX(int nodeHandle)(Code)
The optimized version of SAX2DTM.getNodeNameX().

Given a node handle, return the XPath node name. This should be the name as described by the XPath data model, NOT the DOM- style name.
Parameters:
  nodeHandle - the id of the node. String Name of this node, which may be an empty string.




getNodeValue
public String getNodeValue(int nodeHandle)(Code)
Given a node handle, return its node value. This is mostly as defined by the DOM, but may ignore some conveniences.


Parameters:
  nodeHandle - The node id. String Value of this node, or null if notmeaningful for this node type.




getStringValue
public XMLString getStringValue(int nodeHandle)(Code)
Override SAX2DTM.getStringValue(int)

This method is only used by Xalan-J Interpretive. It is not used by XSLTC.

If the caller supplies an XMLStringFactory, the getStringValue() interface in SAX2DTM will be called. Otherwise just calls getStringValueX() and wraps the returned String in an XMLString. Get the string-value of a node as a String object (see http://www.w3.org/TR/xpath#data-model for the definition of a node's string-value).
Parameters:
  nodeHandle - The node ID. A string object that represents the string-value of the given node.




getStringValue
public String getStringValue()(Code)
Returns the string value of the entire tree



getStringValueX
final public String getStringValueX(int nodeHandle)(Code)
The optimized version of SAX2DTM.getStringValue(int).

%OPT% This is one of the most often used interfaces. Performance is critical here. This one is different from SAX2DTM.getStringValue(int) in that it returns a String instead of a XMLString. Get the string- value of a node as a String object (see http: //www. w3. org/TR/xpath#data- model for the definition of a node's string- value).
Parameters:
  nodeHandle - The node ID. A string object that represents the string-value of the given node.




getTypedAttribute
final protected int getTypedAttribute(int nodeHandle, int attType)(Code)
The optimized version of DTMDefaultBase.getTypedAttribute(int, int).

Given a node handle and an expanded type ID, get the index of the node's attribute of that type, if any.
Parameters:
  nodeHandle - int Handle of the node.
Parameters:
  attType - int expanded type ID of the required attribute. Handle of attribute of the required type, or DTM.NULL to indicatenone exists.




processingInstruction
public void processingInstruction(String target, String data) throws SAXException(Code)
Override the processingInstruction() interface in SAX2DTM2.

%OPT% This one is different from SAX2DTM.processingInstruction() in that we do not use extended types for PI nodes. The name of the PI is saved in the DTMStringPool. Receive notification of a processing instruction.
Parameters:
  target - The processing instruction target.
Parameters:
  data - The processing instruction data, or null ifnone is supplied.
throws:
  SAXException - Any SAX exception, possiblywrapping another exception.
See Also:   org.xml.sax.ContentHandler.processingInstruction




startDocument
public void startDocument() throws SAXException(Code)
Receive notification of the beginning of the document.
throws:
  SAXException - Any SAX exception, possiblywrapping another exception.
See Also:   org.xml.sax.ContentHandler.startDocument



startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)
Override SAX2DTM.startElement()

Receive notification of the start of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).


Parameters:
  uri - The Namespace URI, or the empty string if theelement has no Namespace URI or if Namespaceprocessing is not being performed.
Parameters:
  localName - The local name (without prefix), or theempty string if Namespace processing is not beingperformed.
Parameters:
  qName - The qualified name (with prefix), or theempty string if qualified names are not available.
Parameters:
  attributes - The specified or defaulted attributes.
throws:
  SAXException - Any SAX exception, possiblywrapping another exception.
See Also:   org.xml.sax.ContentHandler.startElement



Fields inherited from org.apache.xml.dtm.ref.sax2dtm.SAX2DTM
protected FastStringBuffer m_chars(Code)(Java Doc)
protected transient int m_coalescedTextType(Code)(Java Doc)
protected transient IntStack m_contextIndexes(Code)(Java Doc)
protected SuballocatedIntVector m_data(Code)(Java Doc)
protected SuballocatedIntVector m_dataOrQName(Code)(Java Doc)
protected boolean m_endDocumentOccured(Code)(Java Doc)
protected Hashtable m_idAttributes(Code)(Java Doc)
protected transient boolean m_insideDTD(Code)(Java Doc)
protected transient Locator m_locator(Code)(Java Doc)
protected transient IntStack m_parents(Code)(Java Doc)
boolean m_pastFirstElement(Code)(Java Doc)
protected transient java.util.Vector m_prefixMappings(Code)(Java Doc)
protected transient int m_previous(Code)(Java Doc)
protected IntVector m_sourceColumn(Code)(Java Doc)
protected IntVector m_sourceLine(Code)(Java Doc)
protected StringVector m_sourceSystemId(Code)(Java Doc)
protected int m_textPendingStart(Code)(Java Doc)
protected transient int m_textType(Code)(Java Doc)
protected boolean m_useSourceLocationProperty(Code)(Java Doc)
protected DTMStringPool m_valuesOrPrefixes(Code)(Java Doc)
protected DTMTreeWalker m_walker(Code)(Java Doc)

Methods inherited from org.apache.xml.dtm.ref.sax2dtm.SAX2DTM
protected int _dataOrQName(int identity)(Code)(Java Doc)
protected void addNewDTMID(int nodeIndex)(Code)(Java Doc)
protected int addNode(int type, int expandedTypeID, int parentIndex, int previousSibling, int dataOrPrefix, boolean canHaveFirstChild)(Code)(Java Doc)
public void attributeDecl(String eName, String aName, String type, String valueDefault, String value) throws SAXException(Code)(Java Doc)
public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc)
protected void charactersFlush()(Code)(Java Doc)
public void clearCoRoutine()(Code)(Java Doc)
public void clearCoRoutine(boolean callDoTerminate)(Code)(Java Doc)
public void comment(char ch, int start, int length) throws SAXException(Code)(Java Doc)
protected boolean declAlreadyDeclared(String prefix)(Code)(Java Doc)
public void dispatchCharactersEvents(int nodeHandle, ContentHandler ch, boolean normalize) throws SAXException(Code)(Java Doc)
public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch) throws org.xml.sax.SAXException(Code)(Java Doc)
public void elementDecl(String name, String model) throws SAXException(Code)(Java Doc)
public void endCDATA() throws SAXException(Code)(Java Doc)
public void endDTD() throws SAXException(Code)(Java Doc)
public void endDocument() throws SAXException(Code)(Java Doc)
public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc)
public void endEntity(String name) throws SAXException(Code)(Java Doc)
public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc)
public void error(SAXParseException e) throws SAXException(Code)(Java Doc)
public void externalEntityDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc)
public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc)
public int getAttributeNode(int nodeHandle, String namespaceURI, String name)(Code)(Java Doc)
public ContentHandler getContentHandler()(Code)(Java Doc)
public DTDHandler getDTDHandler()(Code)(Java Doc)
public DeclHandler getDeclHandler()(Code)(Java Doc)
public String getDocumentTypeDeclarationPublicIdentifier()(Code)(Java Doc)
public String getDocumentTypeDeclarationSystemIdentifier()(Code)(Java Doc)
public int getElementById(String elementId)(Code)(Java Doc)
public EntityResolver getEntityResolver()(Code)(Java Doc)
public ErrorHandler getErrorHandler()(Code)(Java Doc)
public String getFixedNames(int type)(Code)(Java Doc)
public int getIdForNamespace(String uri)(Code)(Java Doc)
public LexicalHandler getLexicalHandler()(Code)(Java Doc)
public String getLocalName(int nodeHandle)(Code)(Java Doc)
public String getNamespaceURI(int nodeHandle)(Code)(Java Doc)
public String getNamespaceURI(String prefix)(Code)(Java Doc)
protected int getNextNodeIdentity(int identity)(Code)(Java Doc)
public String getNodeName(int nodeHandle)(Code)(Java Doc)
public String getNodeNameX(int nodeHandle)(Code)(Java Doc)
public String getNodeValue(int nodeHandle)(Code)(Java Doc)
public int getNumberOfNodes()(Code)(Java Doc)
public String getPrefix(int nodeHandle)(Code)(Java Doc)
public String getPrefix(String qname, String uri)(Code)(Java Doc)
public SourceLocator getSourceLocatorFor(int node)(Code)(Java Doc)
public XMLString getStringValue(int nodeHandle)(Code)(Java Doc)
public String getUnparsedEntityURI(String name)(Code)(Java Doc)
public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc)
public void internalEntityDecl(String name, String value) throws SAXException(Code)(Java Doc)
public boolean isAttributeSpecified(int attributeHandle)(Code)(Java Doc)
public boolean isWhitespace(int nodeHandle)(Code)(Java Doc)
public void migrateTo(DTMManager manager)(Code)(Java Doc)
public boolean needsTwoThreads()(Code)(Java Doc)
protected boolean nextNode()(Code)(Java Doc)
public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc)
public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc)
public InputSource resolveEntity(String publicId, String systemId) throws SAXException(Code)(Java Doc)
public void setDocumentLocator(Locator locator)(Code)(Java Doc)
public void setIDAttribute(String id, int elem)(Code)(Java Doc)
public void setIncrementalSAXSource(IncrementalSAXSource incrementalSAXSource)(Code)(Java Doc)
public void setProperty(String property, Object value)(Code)(Java Doc)
protected void setSourceLocation()(Code)(Java Doc)
public void setUseSourceLocation(boolean useSourceLocation)(Code)(Java Doc)
public void skippedEntity(String name) throws SAXException(Code)(Java Doc)
public void startCDATA() throws SAXException(Code)(Java Doc)
public void startDTD(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc)
public void startDocument() throws SAXException(Code)(Java Doc)
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc)
public void startEntity(String name) throws SAXException(Code)(Java Doc)
public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc)
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc)
public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)

Methods inherited from org.apache.xml.dtm.ref.DTMDefaultBaseIterators
public DTMAxisIterator getAxisIterator(int axis)(Code)(Java Doc)
public DTMAxisIterator getTypedAxisIterator(int axis, int type)(Code)(Java Doc)

Methods inherited from org.apache.xml.dtm.ref.DTMDefaultBaseTraversers
public DTMAxisTraverser getAxisTraverser(int axis)(Code)(Java Doc)

Fields inherited from org.apache.xml.dtm.ref.DTMDefaultBase
final public static int DEFAULT_BLOCKSIZE(Code)(Java Doc)
final public static int DEFAULT_NUMBLOCKS(Code)(Java Doc)
final public static int DEFAULT_NUMBLOCKS_SMALL(Code)(Java Doc)
final protected static int NOTPROCESSED(Code)(Java Doc)
final public static int ROOTNODE(Code)(Java Doc)
protected String m_documentBaseURI(Code)(Java Doc)
protected SuballocatedIntVector m_dtmIdent(Code)(Java Doc)
protected int[][][] m_elemIndexes(Code)(Java Doc)
protected ExpandedNameTable m_expandedNameTable(Code)(Java Doc)
protected SuballocatedIntVector m_exptype(Code)(Java Doc)
protected SuballocatedIntVector m_firstch(Code)(Java Doc)
protected boolean m_indexing(Code)(Java Doc)
public DTMManager m_mgr(Code)(Java Doc)
protected DTMManagerDefault m_mgrDefault(Code)(Java Doc)
protected SuballocatedIntVector m_namespaceDeclSetElements(Code)(Java Doc)
protected Vector m_namespaceDeclSets(Code)(Java Doc)
protected SuballocatedIntVector m_nextsib(Code)(Java Doc)
protected SuballocatedIntVector m_parent(Code)(Java Doc)
protected SuballocatedIntVector m_prevsib(Code)(Java Doc)
protected boolean m_shouldStripWS(Code)(Java Doc)
protected BoolStack m_shouldStripWhitespaceStack(Code)(Java Doc)
protected int m_size(Code)(Java Doc)
protected DTMAxisTraverser[] m_traversers(Code)(Java Doc)
protected DTMWSFilter m_wsfilter(Code)(Java Doc)
protected XMLStringFactory m_xstrf(Code)(Java Doc)

Methods inherited from org.apache.xml.dtm.ref.DTMDefaultBase
protected int _exptype(int identity)(Code)(Java Doc)
protected int _firstch(int identity)(Code)(Java Doc)
protected int _level(int identity)(Code)(Java Doc)
protected int _nextsib(int identity)(Code)(Java Doc)
protected int _parent(int identity)(Code)(Java Doc)
protected int _prevsib(int identity)(Code)(Java Doc)
protected short _type(int identity)(Code)(Java Doc)
public void appendChild(int newChild, boolean clone, boolean cloneDepth)(Code)(Java Doc)
public void appendTextChild(String str)(Code)(Java Doc)
protected void declareNamespaceInContext(int elementNodeIndex, int namespaceNodeIndex)(Code)(Java Doc)
abstract public void dispatchCharactersEvents(int nodeHandle, org.xml.sax.ContentHandler ch, boolean normalize) throws org.xml.sax.SAXException(Code)(Java Doc)
abstract public void dispatchToEvents(int nodeHandle, org.xml.sax.ContentHandler ch) throws org.xml.sax.SAXException(Code)(Java Doc)
public void documentRegistration()(Code)(Java Doc)
public void documentRelease()(Code)(Java Doc)
public void dumpDTM(OutputStream os)(Code)(Java Doc)
public String dumpNode(int nodeHandle)(Code)(Java Doc)
protected void ensureSizeOfIndex(int namespaceID, int LocalNameID)(Code)(Java Doc)
protected void error(String msg)(Code)(Java Doc)
protected int findGTE(int[] list, int start, int len, int value)(Code)(Java Doc)
protected int findInSortedSuballocatedIntVector(SuballocatedIntVector vector, int lookfor)(Code)(Java Doc)
protected SuballocatedIntVector findNamespaceContext(int elementNodeIndex)(Code)(Java Doc)
abstract public int getAttributeNode(int nodeHandle, String namespaceURI, String name)(Code)(Java Doc)
public SuballocatedIntVector getDTMIDs()(Code)(Java Doc)
public int getDocument()(Code)(Java Doc)
public boolean getDocumentAllDeclarationsProcessed()(Code)(Java Doc)
public String getDocumentBaseURI()(Code)(Java Doc)
public String getDocumentEncoding(int nodeHandle)(Code)(Java Doc)
public int getDocumentRoot(int nodeHandle)(Code)(Java Doc)
public String getDocumentStandalone(int nodeHandle)(Code)(Java Doc)
public String getDocumentSystemIdentifier(int nodeHandle)(Code)(Java Doc)
abstract public String getDocumentTypeDeclarationPublicIdentifier()(Code)(Java Doc)
abstract public String getDocumentTypeDeclarationSystemIdentifier()(Code)(Java Doc)
public String getDocumentVersion(int documentHandle)(Code)(Java Doc)
abstract public int getElementById(String elementId)(Code)(Java Doc)
public int getExpandedTypeID(int nodeHandle)(Code)(Java Doc)
public int getExpandedTypeID(String namespace, String localName, int type)(Code)(Java Doc)
public int getFirstAttribute(int nodeHandle)(Code)(Java Doc)
protected int getFirstAttributeIdentity(int identity)(Code)(Java Doc)
public int getFirstChild(int nodeHandle)(Code)(Java Doc)
public int getFirstNamespaceNode(int nodeHandle, boolean inScope)(Code)(Java Doc)
public int getLastChild(int nodeHandle)(Code)(Java Doc)
public short getLevel(int nodeHandle)(Code)(Java Doc)
abstract public String getLocalName(int nodeHandle)(Code)(Java Doc)
public String getLocalNameFromExpandedNameID(int expandedNameID)(Code)(Java Doc)
public DTMManager getManager()(Code)(Java Doc)
public String getNamespaceFromExpandedNameID(int expandedNameID)(Code)(Java Doc)
public int getNamespaceType(int nodeHandle)(Code)(Java Doc)
abstract public String getNamespaceURI(int nodeHandle)(Code)(Java Doc)
public int getNextAttribute(int nodeHandle)(Code)(Java Doc)
protected int getNextAttributeIdentity(int identity)(Code)(Java Doc)
public int getNextNamespaceNode(int baseHandle, int nodeHandle, boolean inScope)(Code)(Java Doc)
abstract protected int getNextNodeIdentity(int identity)(Code)(Java Doc)
public int getNextSibling(int nodeHandle)(Code)(Java Doc)
public org.w3c.dom.Node getNode(int nodeHandle)(Code)(Java Doc)
public int getNodeHandle(int nodeId)(Code)(Java Doc)
public int getNodeIdent(int nodeHandle)(Code)(Java Doc)
abstract public String getNodeName(int nodeHandle)(Code)(Java Doc)
public String getNodeNameX(int nodeHandle)(Code)(Java Doc)
public short getNodeType(int nodeHandle)(Code)(Java Doc)
abstract public String getNodeValue(int nodeHandle)(Code)(Java Doc)
abstract protected int getNumberOfNodes()(Code)(Java Doc)
public int getOwnerDocument(int nodeHandle)(Code)(Java Doc)
public int getParent(int nodeHandle)(Code)(Java Doc)
abstract public String getPrefix(int nodeHandle)(Code)(Java Doc)
public int getPreviousSibling(int nodeHandle)(Code)(Java Doc)
protected boolean getShouldStripWhitespace()(Code)(Java Doc)
abstract public XMLString getStringValue(int nodeHandle)(Code)(Java Doc)
public char[] getStringValueChunk(int nodeHandle, int chunkIndex, int[] startAndLen)(Code)(Java Doc)
public int getStringValueChunkCount(int nodeHandle)(Code)(Java Doc)
protected int getTypedAttribute(int nodeHandle, int attType)(Code)(Java Doc)
public int getTypedFirstChild(int nodeHandle, int nodeType)(Code)(Java Doc)
public int getTypedNextSibling(int nodeHandle, int nodeType)(Code)(Java Doc)
abstract public String getUnparsedEntityURI(String name)(Code)(Java Doc)
public boolean hasChildNodes(int nodeHandle)(Code)(Java Doc)
protected void indexNode(int expandedTypeID, int identity)(Code)(Java Doc)
abstract public boolean isAttributeSpecified(int attributeHandle)(Code)(Java Doc)
public boolean isCharacterElementContentWhitespace(int nodeHandle)(Code)(Java Doc)
public boolean isDocumentAllDeclarationsProcessed(int documentHandle)(Code)(Java Doc)
public boolean isNodeAfter(int nodeHandle1, int nodeHandle2)(Code)(Java Doc)
public boolean isSupported(String feature, String version)(Code)(Java Doc)
final public int makeNodeHandle(int nodeIdentity)(Code)(Java Doc)
final public int makeNodeIdentity(int nodeHandle)(Code)(Java Doc)
public void migrateTo(DTMManager mgr)(Code)(Java Doc)
abstract protected boolean nextNode()(Code)(Java Doc)
protected void popShouldStripWhitespace()(Code)(Java Doc)
protected void pushShouldStripWhitespace(boolean shouldStrip)(Code)(Java Doc)
public void setDocumentBaseURI(String baseURI)(Code)(Java Doc)
public void setFeature(String featureId, boolean state)(Code)(Java Doc)
protected void setShouldStripWhitespace(boolean shouldStrip)(Code)(Java Doc)
public boolean supportsPreStripping()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.