org.inria.ns.reflex.xml.xpath.axes
Class FollowingAxisIterator

java.lang.Object
  extended by org.inria.ns.reflex.xml.xpath.axes.FollowingAxisIterator
All Implemented Interfaces:
Iterator

public class FollowingAxisIterator
extends Object
implements Iterator

An implementation of the XPath following axis. This class is based on Jaxen, but is independant of a given Jaxen navigator.

Author:
Philippe Poulard

Constructor Summary
FollowingAxisIterator(Object contextNode)
          Create a new following axis iterator.
 
Method Summary
 boolean hasNext()
          Returns true if there are any following nodes remaining; false otherwise.
 Object next()
          Returns the next following node.
 void remove()
          This operation is not supported.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FollowingAxisIterator

public FollowingAxisIterator(Object contextNode)
                      throws UnsupportedAxisException
Create a new following axis iterator.

Parameters:
contextNode - the node to start from
navigator - the object model specific navigator
Throws:
UnsupportedAxisException
Method Detail

hasNext

public boolean hasNext()
Returns true if there are any following nodes remaining; false otherwise.

Specified by:
hasNext in interface Iterator
Returns:
true if any following nodes remain
See Also:
Iterator.hasNext()

next

public Object next()
            throws NoSuchElementException
Returns the next following node.

Specified by:
next in interface Iterator
Returns:
the next following node
Throws:
NoSuchElementException - if no following nodes remain
See Also:
Iterator.next()

remove

public void remove()
            throws UnsupportedOperationException
This operation is not supported.

Specified by:
remove in interface Iterator
Throws:
UnsupportedOperationException - always