net.sf.saxon.expr
public final class ItemMappingIterator extends Object implements SequenceIterator, LookaheadIterator
Constructor Summary | |
---|---|
ItemMappingIterator(SequenceIterator base, ItemMappingFunction action)
Construct an ItemMappingIterator that will apply a specified ItemMappingFunction to
each Item returned by the base iterator.
| |
ItemMappingIterator(SequenceIterator base, ItemMappingFunction action, boolean oneToOne)
Construct an ItemMappingIterator that will apply a specified ItemMappingFunction to
each Item returned by the base iterator.
|
Method Summary | |
---|---|
void | close() |
Item | current() |
SequenceIterator | getAnother() |
int | getProperties()
Get properties of this iterator, as a bit-significant integer.
|
boolean | hasNext() |
boolean | isOneToOne()
Ask whether this ItemMappingIterator is one-to-one: that is, for every input item, there is
always exactly one output item. |
Item | next() |
int | position() |
void | setOneToOne(boolean oneToOne)
Say whether this ItemMappingIterator is one-to-one: that is, for every input item, there is
always exactly one output item. |
Parameters: base the base iterator action the mapping function to be applied
Parameters: base the base iterator action the mapping function to be applied oneToOne true if this iterator is one-to-one
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.
Returns: true if this iterator is one-to-one
Throws: XPathException
Parameters: oneToOne true if this iterator is one-to-one
Throws: XPathException