net.sf.saxon.sort

Class GroupStartingIterator

public class GroupStartingIterator extends Object implements LookaheadIterator, GroupIterator

A GroupStartingIterator iterates over a sequence of groups defined by xsl:for-each-group group-starting-with="x". The groups are returned in order of first appearance.
Constructor Summary
GroupStartingIterator(SequenceIterator population, Pattern startPattern, XPathContext context)
Method Summary
voidclose()
Itemcurrent()
SequenceIteratorgetAnother()
AtomicValuegetCurrentGroupingKey()
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
booleanhasNext()
SequenceIteratoriterateCurrentGroup()
Itemnext()
intposition()

Constructor Detail

GroupStartingIterator

public GroupStartingIterator(SequenceIterator population, Pattern startPattern, XPathContext context)

Method Detail

close

public void close()

current

public Item current()

getAnother

public SequenceIterator getAnother()

getCurrentGroupingKey

public AtomicValue getCurrentGroupingKey()

getProperties

public int getProperties()
Get properties of this iterator, as a bit-significant integer.

Returns: the properties of this iterator. This will be some combination of properties such as GroupStartingIterator, GroupStartingIterator, and GroupStartingIterator. 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.

hasNext

public boolean hasNext()

iterateCurrentGroup

public SequenceIterator iterateCurrentGroup()

next

public Item next()

position

public int position()