net.sf.saxon.expr

Class EveryItemMappingIterator

public final class EveryItemMappingIterator extends Object implements SequenceIterator

EveryItemMappingIterator applies a mapping function to each item in a sequence. The mapping function always returns a single item (never null)

This is a specialization of the more general MappingIterator class, for use in cases where a single input item always maps to exactly one output item

Constructor Summary
EveryItemMappingIterator(SequenceIterator base, ItemMappingFunction action)
Construct an ItemMappingIterator that will apply a specified ItemMappingFunction to each Item returned by the base iterator.
Method Summary
voidclose()
Itemcurrent()
SequenceIteratorgetAnother()
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
Itemnext()
intposition()

Constructor Detail

EveryItemMappingIterator

public EveryItemMappingIterator(SequenceIterator base, ItemMappingFunction action)
Construct an ItemMappingIterator that will apply a specified ItemMappingFunction to each Item returned by the base iterator.

Parameters: base the base iterator action the mapping function to be applied

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()