com.icl.saxon.om

Interface AxisEnumeration

public interface AxisEnumeration extends NodeEnumeration, LastPositionFinder

A NodeEnumeration is used to iterate over a list of nodes. An AxisEnumeration is a NodeEnumeration that throws no exceptions; it also supports the ability to find the last() position, again with no exceptions.
Method Summary
intgetLastPosition()
Get the last position
booleanhasMoreElements()
Determine whether there are more nodes to come.
NodeInfonextElement()
Get the next node in sequence.

Method Detail

getLastPosition

public int getLastPosition()
Get the last position

hasMoreElements

public boolean hasMoreElements()
Determine whether there are more nodes to come.
(Note the term "Element" is used here in the sense of the standard Java Enumeration class, it has nothing to do with XML elements).

Returns: true if there are more nodes

nextElement

public NodeInfo nextElement()
Get the next node in sequence.
(Note the term "Element" is used here in the sense of the standard Java Enumeration class, it has nothing to do with XML elements).

Returns: the next NodeInfo