Package org.jaxen.util
Class FollowingSiblingAxisIterator
- java.lang.Object
-
- org.jaxen.util.FollowingSiblingAxisIterator
-
- All Implemented Interfaces:
java.util.Iterator
public class FollowingSiblingAxisIterator extends java.lang.Object implements java.util.IteratorRepresents the XPathfollowing-siblingaxis. The "following-siblingaxis contains all the folowing siblings of the context node; if the context node is an attribute node or namespace node, thefollowing-siblingaxis is empty."- Version:
- 1.2b12
-
-
Constructor Summary
Constructors Constructor Description FollowingSiblingAxisIterator(java.lang.Object contextNode, Navigator navigator)Create a newfollowing-siblingaxis iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Returns true if there are any following siblings remain; false otherwise.java.lang.Objectnext()Returns the next following sibling.voidremove()This operation is not supported.
-
-
-
Constructor Detail
-
FollowingSiblingAxisIterator
public FollowingSiblingAxisIterator(java.lang.Object contextNode, Navigator navigator) throws UnsupportedAxisExceptionCreate a newfollowing-siblingaxis 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 siblings remain; false otherwise.- Specified by:
hasNextin interfacejava.util.Iterator- Returns:
- true if any following siblings remain; false otherwise
- See Also:
Iterator.hasNext()
-
next
public java.lang.Object next() throws java.util.NoSuchElementExceptionReturns the next following sibling.- Specified by:
nextin interfacejava.util.Iterator- Returns:
- the next following sibling
- Throws:
java.util.NoSuchElementException- if no following siblings remain- See Also:
Iterator.next()
-
remove
public void remove() throws java.lang.UnsupportedOperationExceptionThis operation is not supported.- Specified by:
removein interfacejava.util.Iterator- Throws:
java.lang.UnsupportedOperationException- always
-
-