net.sf.saxon.evpull

Class EmptyEventIterator

public class EmptyEventIterator extends Object implements EventIterator

This class is an EventIterator over an empty sequence. It is a singleton class.
Method Summary
static EmptyEventIteratorgetInstance()
Get the singular instance of this class
booleanisFlatSequence()
Determine whether the EventIterator returns a flat sequence of events, or whether it can return nested event iterators
PullEventnext()
Get the next event in the sequence

Method Detail

getInstance

public static EmptyEventIterator getInstance()
Get the singular instance of this class

Returns: the singular instance

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 event in the sequence

Returns: null (there is never a next event)