Package org.loboevolution.apache.xml.dtm
Interface DTMAxisIterator
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
DTMAxisIteratorBase
,DTMDefaultBaseIterators.AncestorIterator
,DTMDefaultBaseIterators.AttributeIterator
,DTMDefaultBaseIterators.ChildrenIterator
,DTMDefaultBaseIterators.DescendantIterator
,DTMDefaultBaseIterators.FollowingIterator
,DTMDefaultBaseIterators.FollowingSiblingIterator
,DTMDefaultBaseIterators.InternalAxisIteratorBase
,DTMDefaultBaseIterators.NamespaceIterator
,DTMDefaultBaseIterators.ParentIterator
,DTMDefaultBaseIterators.PrecedingIterator
,DTMDefaultBaseIterators.PrecedingSiblingIterator
,DTMDefaultBaseIterators.RootIterator
,DTMDefaultBaseIterators.SingletonIterator
This class iterates over a single XPath Axis, and returns node handles.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Specifies the end of the iteration, and is the same as DTM.NULL. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
next()
Get the next node in the iteration.void
reset()
Resets the iterator to the last start node.void
setStartNode
(int node) Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.
-
Field Details
-
END
static final int ENDSpecifies the end of the iteration, and is the same as DTM.NULL.- See Also:
-
-
Method Details
-
next
int next()Get the next node in the iteration.- Returns:
- The next node handle in the iteration, or END.
-
reset
void reset()Resets the iterator to the last start node. -
setStartNode
void setStartNode(int node) Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.- Parameters:
node
- Sets the root of the iteration.
-
isReverse
boolean isReverse()- Returns:
- true if this iterator has a reversed axis, else false.
-
cloneIterator
DTMAxisIterator cloneIterator()- Returns:
- a deep copy of this iterator. The clone should not be reset from its current position.
-