public final class NthIterator extends DTMAxisIteratorBase
END| Constructor and Description |
|---|
NthIterator(DTMAxisIterator source,
int n) |
| Modifier and Type | Method and Description |
|---|---|
DTMAxisIterator |
cloneIterator()
Returns a deep copy of this iterator.
|
int |
getLast()
Returns the position of the last node within the iteration, as
defined by XPath.
|
int |
getPosition() |
void |
gotoMark()
Restores the current node remembered by setMark().
|
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.
|
getAxis, getNodeByPosition, getStartNode, includeSelf, isDocOrdered, isReversepublic NthIterator(DTMAxisIterator source, int n)
public void setRestartable(boolean isRestartable)
DTMAxisIteratorsetRestartable in interface DTMAxisIteratorsetRestartable in class DTMAxisIteratorBasepublic DTMAxisIterator cloneIterator()
DTMAxisIteratorBasecloneIterator in interface DTMAxisIteratorcloneIterator in class DTMAxisIteratorBasepublic int next()
DTMAxisIteratorpublic DTMAxisIterator setStartNode(int node)
DTMAxisIteratornode - Sets the root of the iteration.public DTMAxisIterator reset()
DTMAxisIteratorreset in interface DTMAxisIteratorreset in class DTMAxisIteratorBasepublic int getLast()
DTMAxisIteratorBasegetLast in interface DTMAxisIteratorgetLast in class DTMAxisIteratorBasepublic int getPosition()
getPosition in interface DTMAxisIteratorgetPosition in class DTMAxisIteratorBasepublic void setMark()
DTMAxisIteratorpublic void gotoMark()
DTMAxisIteratorCopyright © 2014 Apache XML Project. All Rights Reserved.