|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaxen.util.FollowingAxisIterator
public class FollowingAxisIterator
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."
| Field Summary | |
|---|---|
private java.lang.Object |
contextNode
|
private java.util.Iterator |
currentSibling
|
private Navigator |
navigator
|
private java.util.Iterator |
siblings
|
| Constructor Summary | |
|---|---|
FollowingAxisIterator(java.lang.Object contextNode,
Navigator navigator)
Create a new following axis iterator. |
|
| Method Summary | |
|---|---|
private boolean |
goForward()
|
private boolean |
goUp()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.Object contextNode
private Navigator navigator
private java.util.Iterator siblings
private java.util.Iterator currentSibling
| Constructor Detail |
|---|
public FollowingAxisIterator(java.lang.Object contextNode,
Navigator navigator)
throws UnsupportedAxisException
following axis iterator.
contextNode - the node to start fromnavigator - the object model specific navigator
UnsupportedAxisException| Method Detail |
|---|
private boolean goForward()
private boolean goUp()
public boolean hasNext()
hasNext in interface java.util.IteratorIterator.hasNext()
public java.lang.Object next()
throws java.util.NoSuchElementException
next in interface java.util.Iteratorjava.util.NoSuchElementException - if no following nodes remainIterator.next()
public void remove()
throws java.lang.UnsupportedOperationException
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - always
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||