|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaxen.util.PrecedingSiblingAxisIterator
public class PrecedingSiblingAxisIterator
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."
| Field Summary | |
|---|---|
private java.lang.Object |
contextNode
|
private Navigator |
navigator
|
private java.lang.Object |
nextObj
|
private java.util.Iterator |
siblingIter
|
| Constructor Summary | |
|---|---|
PrecedingSiblingAxisIterator(java.lang.Object contextNode,
Navigator navigator)
Create a new preceding-sibling axis iterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if there are any preceding siblings remaining; false otherwise. |
private void |
init()
|
java.lang.Object |
next()
Returns the next preceding sibling. |
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.lang.Object contextNode
private Navigator navigator
private java.util.Iterator siblingIter
private java.lang.Object nextObj
| Constructor Detail |
|---|
public PrecedingSiblingAxisIterator(java.lang.Object contextNode,
Navigator navigator)
throws UnsupportedAxisException
preceding-sibling axis iterator.
contextNode - the node to start fromnavigator - the object model specific navigator
UnsupportedAxisException| Method Detail |
|---|
private void init()
throws UnsupportedAxisException
UnsupportedAxisExceptionpublic 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.UnsupportedOperationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||