public final class SortingIterator extends DTMAxisIteratorBase
END| Constructor and Description |
|---|
SortingIterator(DTMAxisIterator source,
NodeSortRecordFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
DTMAxisIterator |
cloneIterator()
Clone a
SortingIterator by cloning its source
iterator and then sharing the factory and the array of
NodeSortRecords. |
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.
|
void |
setMark()
Remembers the current node for the next call to gotoMark().
|
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, isReverse, reset, setRestartablepublic SortingIterator(DTMAxisIterator source, NodeSortRecordFactory factory)
public int next()
DTMAxisIteratorpublic DTMAxisIterator setStartNode(int node)
DTMAxisIteratornode - Sets the root of the iteration.public int getPosition()
getPosition in interface DTMAxisIteratorgetPosition in class DTMAxisIteratorBasepublic int getLast()
DTMAxisIteratorBasegetLast in interface DTMAxisIteratorgetLast in class DTMAxisIteratorBasepublic void setMark()
DTMAxisIteratorpublic void gotoMark()
DTMAxisIteratorpublic DTMAxisIterator cloneIterator()
SortingIterator by cloning its source
iterator and then sharing the factory and the array of
NodeSortRecords.cloneIterator in interface DTMAxisIteratorcloneIterator in class DTMAxisIteratorBaseCopyright © 2023 Apache XML Project. All Rights Reserved.