com.icl.saxon.style

Class GroupActivation

Implemented Interfaces:
NodeEnumeration

public class GroupActivation
extends Object
implements NodeEnumeration

GroupActivation represents one activation of a saxon:group loop. It is implemented as a NodeEnumeration with one extra method, the ability to test whether the value of a key on the current node is the same as the value of the key on the next node. Control over the iteration is shared between the saxon:group and saxon:item elements.

Constructor Summary

GroupActivation(SAXONGroup group, Expression groupkey, NodeEnumeration nodes, Context c)

Method Summary

boolean
hasMoreElements()
boolean
isPeer()
boolean
isReverseSorted()
boolean
isSorted()
NodeInfo
nextElement()
boolean
sameAsNext()

Constructor Details

GroupActivation

public GroupActivation(SAXONGroup group,
                       Expression groupkey,
                       NodeEnumeration nodes,
                       Context c)
            throws XPathException

Method Details

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface NodeEnumeration

isPeer

public boolean isPeer()
Specified by:
isPeer in interface NodeEnumeration

isReverseSorted

public boolean isReverseSorted()
Specified by:
isReverseSorted in interface NodeEnumeration

isSorted

public boolean isSorted()
Specified by:
isSorted in interface NodeEnumeration

nextElement

public NodeInfo nextElement()
            throws XPathException
Specified by:
nextElement in interface NodeEnumeration

sameAsNext

public boolean sameAsNext()
            throws XPathException