EventIterator
, PullEvent
public final class EventMappingIterator extends java.lang.Object implements EventIterator
EventStackIterator
Constructor | Description |
---|---|
EventMappingIterator(SequenceIterator base,
EventMappingFunction action) |
Construct a MappingIterator that will apply a specified MappingFunction to
each Item returned by the base iterator.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
isFlatSequence() |
Determine whether the EventIterator returns a flat sequence of events, or whether it can return
nested event iterators
|
PullEvent |
next() |
Get the next event in the sequence
|
public EventMappingIterator(SequenceIterator base, EventMappingFunction action)
base
- the base iteratoraction
- the mapping function to be appliedpublic PullEvent next() throws XPathException
EventIterator
next
in interface EventIterator
XPathException
- if a dynamic evaluation error occurspublic boolean isFlatSequence()
isFlatSequence
in interface EventIterator