Class DTMDefaultBaseIterators
java.lang.Object
org.loboevolution.apache.xml.dtm.ref.DTMDefaultBase
org.loboevolution.apache.xml.dtm.ref.DTMDefaultBaseTraversers
org.loboevolution.apache.xml.dtm.ref.DTMDefaultBaseIterators
- All Implemented Interfaces:
DTM
- Direct Known Subclasses:
DOM2DTM
This class implements the traversers for DTMDefaultBase.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Iterator that returns the ancestors of a given node in document order.final class
Iterator that returns attribute nodes (of what nodes?)final class
Iterator that returns all immediate children of a given nodeclass
Iterator that returns the descendants of a given node.class
Iterator that returns following nodes of for a given node.class
Iterator that returns all siblings of a given node.static class
Abstract superclass defining behaviors shared by all DTMDefault's internal implementations of DTMAxisIterator.class
Iterator that returns the namespace nodes as defined by the XPath data model for a given node.final class
Iterator that returns the parent of a given node.class
Iterator that returns preceding nodes of a given node.class
Iterator that returns preceding siblings of a given nodeclass
Iterator that returns the root node as defined by the XPath data model for a given node.class
Class SingletonIterator. -
Field Summary
Fields inherited from class org.loboevolution.apache.xml.dtm.ref.DTMDefaultBase
DEFAULT_BLOCKSIZE, DEFAULT_NUMBLOCKS, DEFAULT_NUMBLOCKS_SMALL, m_documentBaseURI, m_dtmIdent, m_elemIndexes, m_expandedNameTable, m_exptype, m_firstch, m_indexing, m_mgr, m_mgrDefault, m_namespaceDeclSetElements, m_namespaceDeclSets, m_nextsib, m_parent, m_prevsib, m_size, m_traversers, NOTPROCESSED, ROOTNODE
Fields inherited from interface org.loboevolution.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, TEXT_NODE
-
Constructor Summary
ConstructorDescriptionDTMDefaultBaseIterators
(DTMManager mgr, Source source, int dtmIdentity, boolean doIndexing) Construct a DTMDefaultBaseTraversers object from a DOM node. -
Method Summary
Modifier and TypeMethodDescriptiongetAxisIterator
(int axis) This is a shortcut to the iterators that implement XPath axes.Methods inherited from class org.loboevolution.apache.xml.dtm.ref.DTMDefaultBaseTraversers
getAxisTraverser
Methods inherited from class org.loboevolution.apache.xml.dtm.ref.DTMDefaultBase
_exptype, _firstch, _level, _nextsib, _parent, _prevsib, _type, declareNamespaceInContext, dumpNode, ensureSizeOfIndex, error, findGTE, findInSortedSuballocatedIntVector, findNamespaceContext, getAttributeNode, getDocument, getDocumentRoot, getElementById, getExpandedTypeID, getExpandedTypeID, getFirstAttribute, getFirstAttributeIdentity, getFirstChild, getFirstNamespaceNode, getLastChild, getLocalName, getManager, getNamespaceURI, getNextAttribute, getNextAttributeIdentity, getNextNamespaceNode, getNextNodeIdentity, getNextSibling, getNode, getNodeName, getNodeNameX, getNodeType, getNodeValue, getOwnerDocument, getParent, getPrefix, getPreviousSibling, getStringValue, indexNode, isNodeAfter, makeNodeHandle, makeNodeIdentity, nextNode
-
Constructor Details
-
DTMDefaultBaseIterators
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.doIndexing
- true if the caller considers it worth it to use indexing schemes.
-
-
Method Details
-
getAxisIterator
This is a shortcut to the iterators that implement 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 givin axis isn't supported.
-