org.jaxen.util
public class PrecedingSiblingAxisIterator extends java.lang.Object implements java.util.Iterator
preceding-sibling axis.
The "preceding-sibling axis contains all the
preceding siblings of the context node; if the context node is an
attribute node or namespace node, the preceding-sibling
axis is empty."| Constructor and Description |
|---|
PrecedingSiblingAxisIterator(java.lang.Object contextNode,
Navigator navigator)
Create a new
preceding-sibling axis iterator. |
public PrecedingSiblingAxisIterator(java.lang.Object contextNode,
Navigator navigator)
throws UnsupportedAxisException
preceding-sibling axis iterator.contextNode - the node to start fromnavigator - the object model specific navigatorUnsupportedAxisExceptionpublic 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 preceding siblings remainIterator.next()public void remove()
throws java.lang.UnsupportedOperationException
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationExceptionCopyright © 2001-2013 Codehaus. All Rights Reserved.