| org.apache.xml.dtm.DTMAxisIterator
All known Subclasses: org.apache.xml.dtm.ref.DTMAxisIteratorBase, org.apache.xml.dtm.ref.EmptyIterator,
DTMAxisIterator | public interface DTMAxisIterator extends Cloneable(Code) | | This class iterates over a single XPath Axis, and returns node handles.
|
Field Summary | |
final public static int | END Specifies the end of the iteration, and is the same as DTM.NULL. |
END | final public static int END(Code) | | Specifies the end of the iteration, and is the same as DTM.NULL.
|
cloneIterator | public DTMAxisIterator cloneIterator()(Code) | | a deep copy of this iterator. The clone should not be reset from its current position. |
getLast | public int getLast()(Code) | | the number of nodes in this iterator. This may be an expensive operation when called the first time. |
getNodeByPosition | public int getNodeByPosition(int position)(Code) | | Return the node at the given position.
Parameters: position - The position The node at the given position. |
getPosition | public int getPosition()(Code) | | The position of the current node in the set, as defined by XPath. |
getStartNode | public int getStartNode()(Code) | | Get start to END should 'close' the iterator,
i.e. subsequent call to next() should return END.
The root node of the iteration. |
gotoMark | public void gotoMark()(Code) | | Restores the current node remembered by setMark().
|
isReverse | public boolean isReverse()(Code) | | true if this iterator has a reversed axis, else false. |
next | public int next()(Code) | | Get the next node in the iteration.
The next node handle in the iteration, or END. |
reset | public DTMAxisIterator reset()(Code) | | Resets the iterator to the last start node.
A DTMAxisIterator, which may or may not be the same as this iterator. |
setMark | public void setMark()(Code) | | Remembers the current node for the next call to gotoMark().
|
setRestartable | public void setRestartable(boolean isRestartable)(Code) | | Set if restartable.
|
setStartNode | public DTMAxisIterator setStartNode(int node)(Code) | | 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. A DTMAxisIterator set to the start of the iteration. |
|
|