|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.evpull.EventMappingIterator
public final class EventMappingIterator
MappingIterator merges a sequence of sequences into a single sequence.
It takes as inputs an iteration, and a mapping function to be
applied to each Item returned by that iteration. The mapping function itself
returns another iteration. The result is an iteration of iterators. To convert this
int a single flat iterator over a uniform sequence of events, the result must be wrapped
in an EventStackIterator
Constructor Summary | |
---|---|
EventMappingIterator(SequenceIterator base,
EventMappingFunction action)
Construct a MappingIterator that will apply a specified MappingFunction to each Item returned by the base iterator. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventMappingIterator(SequenceIterator base, EventMappingFunction action)
base
- the base iteratoraction
- the mapping function to be appliedMethod Detail |
---|
public PullEvent next() throws XPathException
EventIterator
next
in interface EventIterator
XPathException
- if a dynamic evaluation error occurspublic boolean isFlatSequence()
isFlatSequence
in interface EventIterator
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |