net.sf.saxon.expr

Class UnionEnumeration

public class UnionEnumeration extends Object implements SequenceIterator, LookaheadIterator

An enumeration representing a nodeset that is a union of two other NodeSets.
Constructor Summary
UnionEnumeration(SequenceIterator p1, SequenceIterator p2, NodeOrderComparer comparer)
Create the iterator.
Method Summary
Itemcurrent()
SequenceIteratorgetAnother()
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
booleanhasNext()
Itemnext()
intposition()

Constructor Detail

UnionEnumeration

public UnionEnumeration(SequenceIterator p1, SequenceIterator p2, NodeOrderComparer comparer)
Create the iterator. The two input iterators must return nodes in document order for this to work.

Method Detail

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.

hasNext

public boolean hasNext()

next

public Item next()

position

public int position()