net.sf.saxon.om

Class Navigator.BaseEnumeration

public abstract static class Navigator.BaseEnumeration extends AxisIteratorImpl

BaseEnumeration is an abstract implementation of an AxisIterator, it simplifies the implementation of the underlying AxisIterator by requiring it to provide only two methods: advance(), and getAnother().

BaseEnumeration takes responsibility for incrementing position when next() is called. The advance() method in a subclass should therefore not modify position.

Method Summary
abstract voidadvance()
The advance() method must be provided in each concrete implementation.
abstract SequenceIteratorgetAnother()
Itemnext()

Method Detail

advance

public abstract void advance()
The advance() method must be provided in each concrete implementation. It must leave the variable current set to the next node to be returned in the iteration, or to null if there are no more nodes to be returned.

getAnother

public abstract SequenceIterator getAnother()

next

public final Item next()