net.sf.saxon.expr
public final class ContextMappingIterator extends Object implements SequenceIterator
This is a specialization of the MappingIterator class: it differs in that it sets each item being processed as the context item
Constructor Summary | |
---|---|
ContextMappingIterator(ContextMappingFunction action, XPathContext context)
Construct a ContextMappingIterator that will apply a specified ContextMappingFunction 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.
|
Item | next() |
int | position() |
Parameters: action the mapping function to be applied context the processing context. The mapping function is applied to each item returned by context.getCurrentIterator() in turn.
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.