Package org.apache.xml.dtm.ref
Class DTMDefaultBaseIterators
java.lang.Object
org.apache.xml.dtm.ref.DTMDefaultBase
org.apache.xml.dtm.ref.DTMDefaultBaseTraversers
org.apache.xml.dtm.ref.DTMDefaultBaseIterators
- All Implemented Interfaces:
DTM
- Direct Known Subclasses:
DOM2DTM,DTMDocument,SAX2DTM
This class implements the traversers for DTMDefaultBase.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassIterator that returns the ancestors of a given node in document order.final classIterator that returns attribute nodes (of what nodes?)final classIterator that returns all immediate children of a given nodeclassIterator that returns the descendants of a given node.classIterator that returns following nodes of for a given node.classIterator that returns all siblings of a given node.classAbstract superclass defining behaviors shared by all DTMDefault's internal implementations of DTMAxisIterator.final classIterator that returns attributes within a given namespace for a node.final classIterator that returns children within a given namespace for a given node.classIterator that returns the namespace nodes as defined by the XPath data model for a given node.classIterator that returns the descendants of a given node.final classIterator that returns the parent of a given node.classIterator that returns preceding nodes of a given node.classIterator that returns preceding siblings of a given nodeclassIterator that returns the the root node as defined by the XPath data model for a given node.classClass SingletonIterator.final classTyped iterator that returns the ancestors of a given node.final classIterator that returns attribute nodes of a given typefinal classIterator that returns children of a given type for a given node.final classTyped iterator that returns the descendants of a given node.final classIterator that returns following nodes of a given type for a given node.final classIterator that returns all following siblings of a given node.classIterator that returns the namespace nodes as defined by the XPath data model for a given node, filtered by extended type ID.final classIterator that returns preceding nodes of agiven type for a given node.final classIterator that returns preceding siblings of a given type for a given nodeclassIterator that returns the namespace nodes as defined by the XPath data model for a given node, filtered by extended type ID.final classIterator that returns a given node only if it is of a given type. -
Field Summary
Fields inherited from class org.apache.xml.dtm.ref.DTMDefaultBase
DEFAULT_BLOCKSIZE, DEFAULT_NUMBLOCKS, DEFAULT_NUMBLOCKS_SMALL, m_mgr, ROOTNODEFields inherited from interface org.apache.xml.dtm.DTM
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NAMESPACE_NODE, NOTATION_NODE, NTYPES, NULL, PROCESSING_INSTRUCTION_NODE, ROOT_NODE, TEXT_NODE -
Constructor Summary
ConstructorsConstructorDescriptionDTMDefaultBaseIterators(DTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing) Construct a DTMDefaultBaseTraversers object from a DOM node.DTMDefaultBaseIterators(DTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing, int blocksize, boolean usePrevsib, boolean newNameTable) Construct a DTMDefaultBaseTraversers object from a DOM node. -
Method Summary
Modifier and TypeMethodDescriptiongetAxisIterator(int axis) This is a shortcut to the iterators that implement the XPath axes.getTypedAxisIterator(int axis, int type) Get an iterator that can navigate over an XPath Axis, predicated by the extended type ID.Methods inherited from class org.apache.xml.dtm.ref.DTMDefaultBaseTraversers
getAxisTraverserMethods inherited from class org.apache.xml.dtm.ref.DTMDefaultBase
appendChild, appendTextChild, dispatchCharactersEvents, dispatchToEvents, documentRegistration, documentRelease, dumpDTM, dumpNode, getAttributeNode, getDocument, getDocumentAllDeclarationsProcessed, getDocumentBaseURI, getDocumentEncoding, getDocumentRoot, getDocumentStandalone, getDocumentSystemIdentifier, getDocumentTypeDeclarationPublicIdentifier, getDocumentTypeDeclarationSystemIdentifier, getDocumentVersion, getDTMIDs, getElementById, getExpandedTypeID, getExpandedTypeID, getFirstAttribute, getFirstChild, getFirstNamespaceNode, getLastChild, getLevel, getLocalName, getLocalNameFromExpandedNameID, getManager, getNamespaceFromExpandedNameID, getNamespaceType, getNamespaceURI, getNextAttribute, getNextNamespaceNode, getNextSibling, getNode, getNodeHandle, getNodeIdent, getNodeName, getNodeNameX, getNodeType, getNodeValue, getOwnerDocument, getParent, getPrefix, getPreviousSibling, getStringValue, getStringValueChunk, getStringValueChunkCount, getTypedFirstChild, getTypedNextSibling, getUnparsedEntityURI, hasChildNodes, isAttributeSpecified, isCharacterElementContentWhitespace, isDocumentAllDeclarationsProcessed, isNodeAfter, isSupported, makeNodeHandle, makeNodeIdentity, migrateTo, setDocumentBaseURI, setFeature, supportsPreStrippingMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.xml.dtm.DTM
getContentHandler, getDeclHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLexicalHandler, getSourceLocatorFor, needsTwoThreads, setProperty
-
Constructor Details
-
DTMDefaultBaseIterators
public DTMDefaultBaseIterators(DTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing) Construct a DTMDefaultBaseTraversers object from a DOM node.- Parameters:
mgr- The DTMManager who owns this DTM.source- The object that is used to specify the construction source.dtmIdentity- The DTM identity ID for this DTM.whiteSpaceFilter- The white space filter for this DTM, which may be null.xstringfactory- The factory to use for creating XMLStrings.doIndexing- true if the caller considers it worth it to use indexing schemes.
-
DTMDefaultBaseIterators
public DTMDefaultBaseIterators(DTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing, int blocksize, boolean usePrevsib, boolean newNameTable) Construct a DTMDefaultBaseTraversers object from a DOM node.- Parameters:
mgr- The DTMManager who owns this DTM.source- The object that is used to specify the construction source.dtmIdentity- The DTM identity ID for this DTM.whiteSpaceFilter- The white space filter for this DTM, which may be null.xstringfactory- The factory to use for creating XMLStrings.doIndexing- true if the caller considers it worth it to use indexing schemes.blocksize- The block size of the DTM.usePrevsib- true if we want to build the previous sibling node array.newNameTable- true if we want to use a new ExpandedNameTable for this DTM.
-
-
Method Details
-
getTypedAxisIterator
Get an iterator that can navigate over an XPath Axis, predicated by the extended type ID. Returns an iterator that must be initialized with a start node (using iterator.setStartNode()).- Parameters:
axis- One of Axes.ANCESTORORSELF, etc.type- An extended type ID.- Returns:
- A DTMAxisIterator, or null if the given axis isn't supported.
-
getAxisIterator
This is a shortcut to the iterators that implement the XPath axes. Returns a bare-bones iterator that must be initialized with a start node (using iterator.setStartNode()).- Parameters:
axis- One of Axes.ANCESTORORSELF, etc.- Returns:
- A DTMAxisIterator, or null if the given axis isn't supported.
-