public class FollowingAxisIterator
extends java.lang.Object
implements java.util.Iterator
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."Constructor and Description |
---|
FollowingAxisIterator(java.lang.Object contextNode,
Navigator navigator)
Create a new
following axis iterator. |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if there are any following nodes remaining;
false otherwise.
|
java.lang.Object |
next()
Returns the next following node.
|
void |
remove()
This operation is not supported.
|
public FollowingAxisIterator(java.lang.Object contextNode, Navigator navigator) throws UnsupportedAxisException
following
axis iterator.contextNode
- the node to start fromnavigator
- the object model specific navigatorUnsupportedAxisException
public boolean hasNext()
hasNext
in interface java.util.Iterator
Iterator.hasNext()
public java.lang.Object next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator
java.util.NoSuchElementException
- if no following nodes remainIterator.next()
public void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
- alwaysCopyright © 2001–2018 Codehaus. All rights reserved.