net.sf.saxon.sort
public final class DocumentOrderIterator extends Object implements SequenceIterator, Sortable
Constructor Summary | |
---|---|
DocumentOrderIterator(SequenceIterator base, NodeOrderComparer comparer)
Iterate over a sequence in document order. |
Method Summary | |
---|---|
void | close() |
int | compare(int a, int b)
Compare two nodes in document sequence
(needed to implement the Sortable interface) |
Item | current() |
SequenceIterator | getAnother() |
int | getProperties()
Get properties of this iterator, as a bit-significant integer.
|
Item | next() |
int | position() |
void | swap(int a, int b)
Swap two nodes (needed to implement the Sortable interface) |
Returns: the properties of this iterator. This will be some combination of properties such as DocumentOrderIterator, DocumentOrderIterator, and DocumentOrderIterator. It is always acceptable to return the value zero, indicating that there are no known special properties. It is acceptable for the properties of the iterator to change depending on its state.