org.planx.xpath.expr.axis
Interface AxisIterator


public interface AxisIterator

An iterator for axes. AxisIterator does not extend Iterator since next() throws a non-runtime exception.


Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 Object next()
          Returns the next element in the iteration.
 

Method Detail

hasNext

boolean hasNext()
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Returns:
true if the iterator has more elements.

next

Object next()
            throws XPathException
Returns the next element in the iteration.

Returns:
the next element in the iteration.
Throws:
XPathException - if the next element could not be found.


Copyright © 2010. All Rights Reserved.