Top Description Inners Fields Constructors Methods
com.sun.org.apache.xml.internal.dtm.ref

public abstract Class DTMDefaultBaseTraversers

extends DTMDefaultBase
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBaseIterators
Imports
com.sun.org.apache.xml.internal.dtm.*, javax.xml.transform.Source, com.sun.org.apache.xml.internal.utils.XMLStringFactory, com.sun.org.apache.xml.internal.res.XMLErrorResources, .XMLMessages, com.sun.org.apache.xalan.internal.xsltc.dom.NodeCounter

This class implements the traversers for DTMDefaultBase. PLEASE NOTE that the public interface for all traversers should be in terms of DTM Node Handles... but they may use the internal node identity indices within their logic, for efficiency's sake. Be very careful to avoid confusing these when maintaining this code.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
DTMDefaultBaseTraversers.AllFromNodeTraverser

Implements traversal of the entire subtree, including the root node.

private class
DTMDefaultBaseTraversers.AllFromRootTraverser

Implements traversal of the Ancestor access, in reverse document order.

private class
DTMDefaultBaseTraversers.AncestorOrSelfTraverser

Implements traversal of the Ancestor access, in reverse document order.

private class
DTMDefaultBaseTraversers.AncestorTraverser

Implements traversal of the Ancestor access, in reverse document order.

private class
DTMDefaultBaseTraversers.AttributeTraverser

Implements traversal of the Attribute access

private class
DTMDefaultBaseTraversers.ChildTraverser

Implements traversal of the Ancestor access, in reverse document order.

private class
DTMDefaultBaseTraversers.DescendantFromRootTraverser

A non-xpath axis, returns all nodes that aren't namespaces or attributes, from but not including the root.

private class
DTMDefaultBaseTraversers.DescendantOrSelfFromRootTraverser

A non-xpath axis, returns all nodes that aren't namespaces or attributes, from and including the root.

private class
DTMDefaultBaseTraversers.DescendantOrSelfTraverser

Implements traversal of the Ancestor access, in reverse document order.

private class
DTMDefaultBaseTraversers.DescendantTraverser

Implements traversal of the Ancestor access, in reverse document order.

private class
DTMDefaultBaseTraversers.FollowingSiblingTraverser

Implements traversal of the Ancestor access, in reverse document order.

private class
DTMDefaultBaseTraversers.FollowingTraverser

Implements traversal of the following access, in document order.

private abstract class
DTMDefaultBaseTraversers.IndexedDTMAxisTraverser

Super class for derived classes that want a convenient way to access the indexing mechanism.

private class
DTMDefaultBaseTraversers.NamespaceDeclsTraverser

Implements traversal of the Ancestor access, in reverse document order.

private class
DTMDefaultBaseTraversers.NamespaceTraverser

Implements traversal of the Ancestor access, in reverse document order.

private class
DTMDefaultBaseTraversers.ParentTraverser

Implements traversal of the Ancestor access, in reverse document order.

private class
DTMDefaultBaseTraversers.PrecedingAndAncestorTraverser

Implements traversal of the Ancestor and the Preceding axis, in reverse document order.

private class
DTMDefaultBaseTraversers.PrecedingSiblingTraverser

Implements traversal of the Ancestor access, in reverse document order.

private class
DTMDefaultBaseTraversers.PrecedingTraverser

Implements traversal of the Ancestor access, in reverse document order.

private class
DTMDefaultBaseTraversers.RootTraverser

Implements traversal of the Self axis.

private class
DTMDefaultBaseTraversers.SelfTraverser

Implements traversal of the Self axis.

Field Summary

Inherited from com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBase:
DEFAULT_BLOCKSIZEDEFAULT_NUMBLOCKSDEFAULT_NUMBLOCKS_SMALLJJK_DEBUGm_documentBaseURIm_dtmIdentm_elemIndexesm_expandedNameTablem_exptypem_firstchm_indexingm_mgrm_mgrDefaultm_namespaceDeclSetElementsm_namespaceDeclSetsm_nextsibm_parentm_prevsibm_shouldStripWhitespaceStackm_shouldStripWSm_sizem_traversersm_wsfilterm_xstrfNOTPROCESSEDROOTNODE

Constructor Summary

AccessConstructor and Description
public
DTMDefaultBaseTraversers(DTMManager
The DTMManager who owns this DTM.
mgr
,
Source
The object that is used to specify the construction source.
source
,
int
The DTM identity ID for this DTM.
dtmIdentity
,
DTMWSFilter
The white space filter for this DTM, which may be null.
whiteSpaceFilter
,
XMLStringFactory
The factory to use for creating XMLStrings.
xstringfactory
,
boolean
true if the caller considers it worth it to use indexing schemes.
doIndexing
)

Construct a DTMDefaultBaseTraversers object from a DOM node.

public
DTMDefaultBaseTraversers(DTMManager
The DTMManager who owns this DTM.
mgr
,
Source
The object that is used to specify the construction source.
source
,
int
The DTM identity ID for this DTM.
dtmIdentity
,
DTMWSFilter
The white space filter for this DTM, which may be null.
whiteSpaceFilter
,
XMLStringFactory
The factory to use for creating XMLStrings.
xstringfactory
,
boolean
true if the caller considers it worth it to use indexing schemes.
doIndexing
,
int
The block size of the DTM.
blocksize
,
boolean
true if we want to build the previous sibling node array.
usePrevsib
,
boolean
true if we want to use a new ExpandedNameTable for this DTM.
newNameTable
)

Construct a DTMDefaultBaseTraversers object from a DOM node.

Method Summary

Modifier and TypeMethod and Description
public DTMAxisTraverser

Returns:

A DTMAxisTraverser, or null if the given axis isn't supported.
getAxisTraverser
(final int
One of Axes.ANCESTORORSELF, etc.
axis
)

Implements com.sun.org.apache.xml.internal.dtm.DTM.getAxisTraverser.

This returns a stateless "traverser", that can navigate over an XPath axis, though perhaps not in document order.

Inherited from com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBase:
_exptype_firstch_level_nextsib_parent_prevsib_typeappendChildappendTextChilddeclareNamespaceInContextdispatchCharactersEventsdispatchToEventsdocumentRegistrationdocumentReleasedumpDTMdumpNodeensureSizeOfIndexerrorfindElementFromIndexfindGTEfindInSortedSuballocatedIntVectorfindNamespaceContextgetAttributeNodegetDocumentgetDocumentAllDeclarationsProcessedgetDocumentBaseURIgetDocumentEncodinggetDocumentRootgetDocumentStandalonegetDocumentSystemIdentifiergetDocumentTypeDeclarationPublicIdentifiergetDocumentTypeDeclarationSystemIdentifiergetDocumentVersiongetDTMIDsgetElementByIdgetExpandedTypeIDgetExpandedTypeIDgetFirstAttributegetFirstAttributeIdentitygetFirstChildgetFirstNamespaceNodegetLastChildgetLevelgetLocalNamegetLocalNameFromExpandedNameIDgetManagergetNamespaceFromExpandedNameIDgetNamespaceTypegetNamespaceURIgetNextAttributegetNextAttributeIdentitygetNextNamespaceNodegetNextNodeIdentitygetNextSiblinggetNodegetNodeHandlegetNodeIdentgetNodeNamegetNodeNameXgetNodeTypegetNodeValuegetNumberOfNodesgetOwnerDocumentgetParentgetPrefixgetPreviousSiblinggetShouldStripWhitespacegetStringValuegetStringValueChunkgetStringValueChunkCountgetTypedAttributegetTypedFirstChildgetTypedNextSiblinggetUnparsedEntityURIhasChildNodesindexNodeisAttributeSpecifiedisCharacterElementContentWhitespaceisDocumentAllDeclarationsProcessedisNodeAfterisSupportedmakeNodeHandlemakeNodeIdentitymigrateTonextNodepopShouldStripWhitespacepushShouldStripWhitespacesetDocumentBaseURIsetFeaturesetShouldStripWhitespacesupportsPreStripping