net.sf.saxon.expr
public final class CardinalityCheckingIterator extends Object implements SequenceIterator
Constructor Summary | |
---|---|
CardinalityCheckingIterator(SequenceIterator base, int requiredCardinality, RoleLocator role, SourceLocator locator)
Construct an CardinalityCheckingIterator that will return the same items as the base sequence,
checking how many there are
|
Method Summary | |
---|---|
void | close() |
Item | current() |
SequenceIterator | getAnother() |
int | getProperties()
Get properties of this iterator, as a bit-significant integer.
|
Item | next() |
int | position() |
Parameters: base the base iterator requiredCardinality the required Cardinality
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.