Package org.jaxen.util
Class DescendantAxisIterator
- java.lang.Object
-
- org.jaxen.util.DescendantAxisIterator
-
- All Implemented Interfaces:
java.util.Iterator
- Direct Known Subclasses:
DescendantOrSelfAxisIterator
public class DescendantAxisIterator extends java.lang.Object implements java.util.IteratorRepresents 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(java.lang.Object contextNode, Navigator navigator)Create a newdescendantaxis iterator.DescendantAxisIterator(Navigator navigator, java.util.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.java.lang.Objectnext()Returns the next descendant node.voidremove()This operation is not supported.
-
-
-
Constructor Detail
-
DescendantAxisIterator
public DescendantAxisIterator(java.lang.Object contextNode, Navigator navigator) throws UnsupportedAxisExceptionCreate a newdescendantaxis iterator.- Parameters:
contextNode- the node to start fromnavigator- the object model specific navigator- Throws:
UnsupportedAxisException
-
DescendantAxisIterator
public DescendantAxisIterator(Navigator navigator, java.util.Iterator iterator)
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns true if there are any descendants remaining; false otherwise.- Specified by:
hasNextin interfacejava.util.Iterator- Returns:
- true if any descendants remain; false otherwise
- See Also:
Iterator.hasNext()
-
next
public java.lang.Object next()
Returns the next descendant node.- Specified by:
nextin interfacejava.util.Iterator- Returns:
- the next descendant node
- Throws:
java.util.NoSuchElementException- if no descendants remain- See Also:
Iterator.next()
-
remove
public void remove()
This operation is not supported.- Specified by:
removein interfacejava.util.Iterator- Throws:
java.lang.UnsupportedOperationException- always
-
-