net.sf.saxon.expr

Class DifferenceEnumeration

public class DifferenceEnumeration extends Object implements SequenceIterator

An enumeration representing a nodeset that is teh difference of two other NodeSets. There is an "except" operator in XPath 2.0 to create such an expression.
Constructor Summary
DifferenceEnumeration(SequenceIterator p1, SequenceIterator p2, NodeOrderComparer comparer)
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
voidclose()
Itemcurrent()
SequenceIteratorgetAnother()
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
Itemnext()
intposition()

Constructor Detail

DifferenceEnumeration

public DifferenceEnumeration(SequenceIterator p1, SequenceIterator p2, NodeOrderComparer comparer)
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, with nodes delivered in document order p2 the second operand, with nodes delivered in document order comparer the comparer

Method Detail

close

public void close()

current

public Item current()

getAnother

public SequenceIterator getAnother()

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 GROUNDED, LAST_POSITION_FINDER, and LOOKAHEAD. 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.

next

public Item next()

position

public int position()