|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaxen.util.DescendantAxisIterator
public class DescendantAxisIterator
Represents the XPath descendant axis.
The "descendant axis contains the descendants of the context node;
a descendant is a child or a child of a child and so on; thus
the descendant axis never contains attribute or namespace nodes."
| Field Summary | |
|---|---|
private java.util.Iterator |
children
|
private Navigator |
navigator
|
private java.util.ArrayList |
stack
|
| Constructor Summary | |
|---|---|
DescendantAxisIterator(Navigator navigator,
java.util.Iterator iterator)
|
|
DescendantAxisIterator(java.lang.Object contextNode,
Navigator navigator)
Create a new descendant axis iterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if there are any descendants remaining; false otherwise. |
java.lang.Object |
next()
Returns the next descendant 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.util.ArrayList stack
private java.util.Iterator children
private Navigator navigator
| Constructor Detail |
|---|
public DescendantAxisIterator(java.lang.Object contextNode,
Navigator navigator)
throws UnsupportedAxisException
descendant axis iterator.
contextNode - the node to start fromnavigator - the object model specific navigator
UnsupportedAxisException
public DescendantAxisIterator(Navigator navigator,
java.util.Iterator iterator)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.IteratorIterator.hasNext()public java.lang.Object next()
next in interface java.util.Iteratorjava.util.NoSuchElementException - if no descendants remainIterator.next()public void remove()
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 | |||||||||