org.jaxen.util
Class FollowingAxisIterator
java.lang.Object
org.jaxen.util.FollowingAxisIterator
- Iterator
public class FollowingAxisIterator
extends java.lang.Object
implements Iterator
Represents the XPath following
axis.
The "following
axis 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."
private boolean | goForward()
|
private boolean | goUp()
|
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.
|
contextNode
private Object contextNode
currentSibling
private Iterator currentSibling
siblings
private Iterator siblings
FollowingAxisIterator
public FollowingAxisIterator(Object contextNode,
Navigator navigator)
throws UnsupportedAxisException
Create a new following
axis iterator.
contextNode
- the node to start fromnavigator
- the object model specific navigator
goForward
private boolean goForward()
goUp
private boolean goUp()
hasNext
public boolean hasNext()
Returns true if there are any following nodes remaining;
false otherwise.
- true if any following nodes remain
java.util.Iterator.hasNext()
next
public Object next()
throws NoSuchElementException
Returns the next following node.
java.util.Iterator.next()
remove
public void remove()
throws UnsupportedOperationException
This operation is not supported.