Package org.jaxen.util
Class FollowingAxisIterator
- java.lang.Object
-
- org.jaxen.util.FollowingAxisIterator
-
- All Implemented Interfaces:
Iterator
public class FollowingAxisIterator extends Object implements Iterator
Represents the XPathfollowingaxis. The "followingaxis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes."- Version:
- 1.2b12
-
-
Constructor Summary
Constructors Constructor Description FollowingAxisIterator(Object contextNode, Navigator navigator)Create a newfollowingaxis iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Returns true if there are any following nodes remaining; false otherwise.Objectnext()Returns the next following node.voidremove()This operation is not supported.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
FollowingAxisIterator
public FollowingAxisIterator(Object contextNode, Navigator navigator) throws UnsupportedAxisException
Create a newfollowingaxis iterator.- Parameters:
contextNode- the node to start fromnavigator- 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:
hasNextin interfaceIterator- Returns:
- true if any following nodes remain
- See Also:
Iterator.hasNext()
-
next
public Object next() throws NoSuchElementException
Returns the next following node.- Specified by:
nextin interfaceIterator- Returns:
- the next following node
- Throws:
NoSuchElementException- if no following nodes remain- See Also:
Iterator.next()
-
remove
public void remove() throws UnsupportedOperationExceptionThis operation is not supported.- Specified by:
removein interfaceIterator- Throws:
UnsupportedOperationException- always
-
-