com.icl.saxon.expr

Class DifferenceEnumeration

public class DifferenceEnumeration extends Object implements NodeEnumeration

An enumeration representing a nodeset that is an intersection of two other NodeSets. There is currently no operator in XPath to create such an expression, but it is used by the extension function difference(). The code is derived from the analagous UnionEnumeration, an inner class of UnionExpression.
Field Summary
NodeInfonextNode
Constructor Summary
DifferenceEnumeration(NodeEnumeration p1, NodeEnumeration p2, Controller controller)
Form an enumeration of the difference of two nodesets, that is, the nodes that are in p1 and that are not in p2.
Method Summary
booleanhasMoreElements()
booleanisPeer()
booleanisReverseSorted()
booleanisSorted()
NodeInfonextElement()

Field Detail

nextNode

NodeInfo nextNode

Constructor Detail

DifferenceEnumeration

public DifferenceEnumeration(NodeEnumeration p1, NodeEnumeration p2, Controller controller)
Form an enumeration of the difference of two nodesets, that is, the nodes that are in p1 and that are not in p2.

Parameters: p1 the first operand p2 the second operand comparer the comparer

Method Detail

hasMoreElements

public boolean hasMoreElements()

isPeer

public boolean isPeer()

isReverseSorted

public boolean isReverseSorted()

isSorted

public boolean isSorted()

nextElement

public NodeInfo nextElement()