net.sf.saxon.om
Class NodeListIterator
- AxisIterator, GroundedIterator, LastPositionFinder, LookaheadIterator, SequenceIterator, UnfailingIterator
public class NodeListIterator
Specialization of ListIterator for use when the items in the list are all nodes
NodeListIterator
public NodeListIterator(List list)
Create a NodeListIterator.
list
- the list, all of whose members must be instances of NodeInfo (this is not checked)
getStringValue
public CharSequence getStringValue()
Return the string value of the current node.
- getStringValue in interface AxisIterator
- the string value, as an instance of CharSequence.
iterateAxis
public AxisIterator iterateAxis(byte axis,
NodeTest test)
Return an iterator over an axis, starting at the current node.
- iterateAxis in interface AxisIterator
axis
- the axis to iterate over, using a constant such as
Axis.CHILD
test
- a predicate to apply to the nodes before returning them.
moveNext
public boolean moveNext()
Move to the next node, without returning it. Returns true if there is
a next node, false if the end of the sequence has been reached. After
calling this method, the current node may be retrieved using the
current() function.
- moveNext in interface AxisIterator