com.icl.saxon.expr

Class SortKeyEnumeration

public final class SortKeyEnumeration extends Object implements NodeEnumeration, LastPositionFinder, Sortable

A SortKeyEnumeration is NodeEnumeration that delivers the nodes sorted according to a specified sort key.
Field Summary
protected NodeEnumerationbase
Constructor Summary
SortKeyEnumeration(Context context, NodeEnumeration _base, SortKeyDefinition[] sortkeys)
Method Summary
intcompare(int a, int b)
Compare two nodes in sorted sequence (needed to implement the Sortable interface)
intgetLastPosition()
booleanhasMoreElements()
Determine whether there are more nodes
booleanisPeer()
booleanisReverseSorted()
booleanisSorted()
NodeInfonextElement()
Get the next node, in sorted order
voidswap(int a, int b)
Swap two nodes (needed to implement the Sortable interface)

Field Detail

base

protected NodeEnumeration base

Constructor Detail

SortKeyEnumeration

public SortKeyEnumeration(Context context, NodeEnumeration _base, SortKeyDefinition[] sortkeys)

Method Detail

compare

public int compare(int a, int b)
Compare two nodes in sorted sequence (needed to implement the Sortable interface)

getLastPosition

public int getLastPosition()

hasMoreElements

public boolean hasMoreElements()
Determine whether there are more nodes

isPeer

public boolean isPeer()

isReverseSorted

public boolean isReverseSorted()

isSorted

public boolean isSorted()

nextElement

public NodeInfo nextElement()
Get the next node, in sorted order

swap

public void swap(int a, int b)
Swap two nodes (needed to implement the Sortable interface)