org.jaxen.util
Class PrecedingSiblingAxisIterator
java.lang.Objectorg.jaxen.util.PrecedingSiblingAxisIterator
- Iterator
public class PrecedingSiblingAxisIterator
extends java.lang.Object
implements Iterator
Represents the XPath 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."
boolean | hasNext()- Returns true if there are any preceding siblings remaining; false otherwise.
|
private void | init()
|
Object | next()- Returns the next preceding sibling.
|
void | remove()- This operation is not supported.
|
contextNode
private Object contextNode
nextObj
private Object nextObj
siblingIter
private Iterator siblingIter
PrecedingSiblingAxisIterator
public PrecedingSiblingAxisIterator(Object contextNode,
Navigator navigator)
throws UnsupportedAxisException Create a new preceding-sibling axis iterator.
contextNode - the node to start fromnavigator - the object model specific navigator
hasNext
public boolean hasNext()
Returns true if there are any preceding siblings remaining; false otherwise.
- true if any preceding siblings remain; false otherwise
java.util.Iterator.hasNext()
next
public Object next()
throws NoSuchElementException Returns the next preceding sibling.
- the next preceding sibling
java.util.Iterator.next()
remove
public void remove()
throws UnsupportedOperationException This operation is not supported.