Package org.jaxen.util
Class DescendantAxisIterator
- java.lang.Object
-
- org.jaxen.util.DescendantAxisIterator
-
- All Implemented Interfaces:
Iterator
- Direct Known Subclasses:
DescendantOrSelfAxisIterator
public class DescendantAxisIterator extends Object implements Iterator
Represents the XPathdescendantaxis. The "descendantaxis 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."- Version:
- 1.2b12
-
-
Constructor Summary
Constructors Constructor Description DescendantAxisIterator(Object contextNode, Navigator navigator)Create a newdescendantaxis iterator.DescendantAxisIterator(Navigator navigator, Iterator iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Returns true if there are any descendants remaining; false otherwise.Objectnext()Returns the next descendant node.voidremove()This operation is not supported.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
DescendantAxisIterator
public DescendantAxisIterator(Object contextNode, Navigator navigator) throws UnsupportedAxisException
Create a newdescendantaxis iterator.- Parameters:
contextNode- the node to start fromnavigator- the object model specific navigator- Throws:
UnsupportedAxisException
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns true if there are any descendants remaining; false otherwise.- Specified by:
hasNextin interfaceIterator- Returns:
- true if any descendants remain; false otherwise
- See Also:
Iterator.hasNext()
-
next
public Object next()
Returns the next descendant node.- Specified by:
nextin interfaceIterator- Returns:
- the next descendant node
- Throws:
NoSuchElementException- if no descendants remain- See Also:
Iterator.next()
-
remove
public void remove()
This operation is not supported.- Specified by:
removein interfaceIterator- Throws:
UnsupportedOperationException- always
-
-