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

public abstract Class DTMDefaultBaseIterators

extends DTMDefaultBaseTraversers
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xml.internal.dtm.ref.dom2dtm.DOM2DTM, com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM
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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class
DTMDefaultBaseIterators.AncestorIterator

Iterator that returns the ancestors of a given node in document order.

public class
DTMDefaultBaseIterators.AttributeIterator

Iterator that returns attribute nodes (of what nodes?)

public class
DTMDefaultBaseIterators.ChildrenIterator

Iterator that returns all immediate children of a given node

public class
DTMDefaultBaseIterators.DescendantIterator

Iterator that returns the descendants of a given node.

public class
DTMDefaultBaseIterators.FollowingIterator

Iterator that returns following nodes of for a given node.

public class
DTMDefaultBaseIterators.FollowingSiblingIterator

Iterator that returns all siblings of a given node.

public abstract class
DTMDefaultBaseIterators.InternalAxisIteratorBase

Abstract superclass defining behaviors shared by all DTMDefault's internal implementations of DTMAxisIterator.

public class
DTMDefaultBaseIterators.NamespaceAttributeIterator

Iterator that returns attributes within a given namespace for a node.

public class
DTMDefaultBaseIterators.NamespaceChildrenIterator

Iterator that returns children within a given namespace for a given node.

public class
DTMDefaultBaseIterators.NamespaceIterator

Iterator that returns the namespace nodes as defined by the XPath data model for a given node.

public class
DTMDefaultBaseIterators.NthDescendantIterator

Iterator that returns the descendants of a given node.

public class
DTMDefaultBaseIterators.ParentIterator

Iterator that returns the parent of a given node.

public class
DTMDefaultBaseIterators.PrecedingIterator

Iterator that returns preceding nodes of a given node.

public class
DTMDefaultBaseIterators.PrecedingSiblingIterator

Iterator that returns preceding siblings of a given node

public class
DTMDefaultBaseIterators.RootIterator

Iterator that returns the the root node as defined by the XPath data model for a given node.

public class
public class
DTMDefaultBaseIterators.TypedAncestorIterator

Typed iterator that returns the ancestors of a given node.

public class
DTMDefaultBaseIterators.TypedAttributeIterator

Iterator that returns attribute nodes of a given type

public class
DTMDefaultBaseIterators.TypedChildrenIterator

Iterator that returns children of a given type for a given node.

public class
DTMDefaultBaseIterators.TypedDescendantIterator

Typed iterator that returns the descendants of a given node.

public class
DTMDefaultBaseIterators.TypedFollowingIterator

Iterator that returns following nodes of a given type for a given node.

public class
DTMDefaultBaseIterators.TypedFollowingSiblingIterator

Iterator that returns all following siblings of a given node.

public class
DTMDefaultBaseIterators.TypedNamespaceIterator

Iterator that returns the namespace nodes as defined by the XPath data model for a given node, filtered by extended type ID.

public class
DTMDefaultBaseIterators.TypedPrecedingIterator

Iterator that returns preceding nodes of agiven type for a given node.

public class
DTMDefaultBaseIterators.TypedPrecedingSiblingIterator

Iterator that returns preceding siblings of a given type for a given node

public class
DTMDefaultBaseIterators.TypedRootIterator

Iterator that returns the namespace nodes as defined by the XPath data model for a given node, filtered by extended type ID.

public class
DTMDefaultBaseIterators.TypedSingletonIterator

Iterator that returns a given node only if it is of a given type.

Constructor Summary

AccessConstructor and Description
public
DTMDefaultBaseIterators(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
DTMDefaultBaseIterators(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 DTMAxisIterator

Returns:

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

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

This is a shortcut to the iterators that implement the XPath axes.

public DTMAxisIterator

Returns:

A DTMAxisIterator, or null if the given axis isn't supported.
getTypedAxisIterator
(int
One of Axes.ANCESTORORSELF, etc.
axis
,
int
An extended type ID.
type
)

Implements com.sun.org.apache.xml.internal.dtm.DTM.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()).

Inherited from com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBaseTraversers:
getAxisTraverser