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