org.jaxen.util
Class FollowingSiblingAxisIterator
java.lang.Object
org.jaxen.util.FollowingSiblingAxisIterator
- Iterator
public class FollowingSiblingAxisIterator
extends java.lang.Object
implements Iterator
Represents the XPath following-sibling
axis.
The "following-sibling
axis contains all the
folowing siblings of the context node; if the context node is an
attribute node or namespace node, the following-sibling
axis is empty."
boolean | hasNext() - Returns true if there are any following siblings remain; false otherwise.
|
private void | init()
|
Object | next() - Returns the next following sibling.
|
void | remove() - This operation is not supported.
|
contextNode
private Object contextNode
siblingIter
private Iterator siblingIter
FollowingSiblingAxisIterator
public FollowingSiblingAxisIterator(Object contextNode,
Navigator navigator)
throws UnsupportedAxisException
Create a new following-sibling
axis iterator.
contextNode
- the node to start fromnavigator
- the object model specific navigator
hasNext
public boolean hasNext()
Returns true if there are any following siblings remain; false otherwise.
- true if any following siblings remain; false otherwise
java.util.Iterator.hasNext()
next
public Object next()
throws NoSuchElementException
Returns the next following sibling.
- the next following sibling
java.util.Iterator.next()
remove
public void remove()
throws UnsupportedOperationException
This operation is not supported.