Package net.sf.saxon.evpull
Class EventIteratorOverSequence
java.lang.Object
net.sf.saxon.evpull.EventIteratorOverSequence
- All Implemented Interfaces:
EventIterator
,PullEvent
This class maps a SequenceIterator to an EventIterator, by simply returning the items in the sequence
as PullEvents.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate an EventIterator that wraps a given SequenceIterator -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine whether the EventIterator returns a flat sequence of events, or whether it can return nested event iteratorsnext()
Get the next PullEvent in the sequence
-
Field Details
-
base
SequenceIterator base
-
-
Constructor Details
-
EventIteratorOverSequence
Create an EventIterator that wraps a given SequenceIterator- Parameters:
base
- the SequenceIterator to be wrapped
-
-
Method Details
-
next
Get the next PullEvent in the sequence- Specified by:
next
in interfaceEventIterator
- Returns:
- the next PullEvent
- Throws:
XPathException
- in case of a dynamic error
-
isFlatSequence
public boolean isFlatSequence()Determine whether the EventIterator returns a flat sequence of events, or whether it can return nested event iterators- Specified by:
isFlatSequence
in interfaceEventIterator
- Returns:
- true if the next() method is guaranteed never to return an EventIterator
-