public final class SortingIterator extends DTMAxisIteratorBase
_includeSelf, _isRestartable, _last, _markedNode, _position, _startNode
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.
|
getAxis, getNodeByPosition, getStartNode, includeSelf, isDocOrdered, isReverse, reset, resetPosition, returnNode, setRestartable
public SortingIterator(DTMAxisIterator source, NodeSortRecordFactory factory)
public int next()
DTMAxisIterator
public DTMAxisIterator setStartNode(int node)
DTMAxisIterator
node
- Sets the root of the iteration.public int getPosition()
getPosition
in interface DTMAxisIterator
getPosition
in class DTMAxisIteratorBase
public int getLast()
DTMAxisIteratorBase
getLast
in interface DTMAxisIterator
getLast
in class DTMAxisIteratorBase
public void setMark()
DTMAxisIterator
public void gotoMark()
DTMAxisIterator
public DTMAxisIterator cloneIterator()
SortingIterator
by cloning its source
iterator and then sharing the factory and the array of
NodeSortRecords
.cloneIterator
in interface DTMAxisIterator
cloneIterator
in class DTMAxisIteratorBase
Copyright © 2018 JBoss by Red Hat. All rights reserved.