net.sf.saxon.evpull

Class EventIteratorOverSequence

public class EventIteratorOverSequence extends Object implements EventIterator

This class maps a SequenceIterator to an EventIterator, by simply returning the items in the sequence as PullEvents.
Field Summary
SequenceIteratorbase
Constructor Summary
EventIteratorOverSequence(SequenceIterator base)
Create an EventIterator that wraps a given SequenceIterator
Method Summary
booleanisFlatSequence()
Determine whether the EventIterator returns a flat sequence of events, or whether it can return nested event iterators
PullEventnext()
Get the next PullEvent in the sequence

Field Detail

base

SequenceIterator base

Constructor Detail

EventIteratorOverSequence

public EventIteratorOverSequence(SequenceIterator base)
Create an EventIterator that wraps a given SequenceIterator

Parameters: base the SequenceIterator to be wrapped

Method Detail

isFlatSequence

public boolean isFlatSequence()
Determine whether the EventIterator returns a flat sequence of events, or whether it can return nested event iterators

Returns: true if the next() method is guaranteed never to return an EventIterator

next

public PullEvent next()
Get the next PullEvent in the sequence

Returns: the next PullEvent

Throws: XPathException in case of a dynamic error