org.jaxen.util
public class PrecedingSiblingAxisIterator extends Object implements 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."
Version: 1.2b12
| Field Summary | |
|---|---|
| Object | contextNode |
| Navigator | navigator |
| Object | nextObj |
| Iterator | siblingIter |
| Constructor Summary | |
|---|---|
| PrecedingSiblingAxisIterator(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.
|
| void | init() |
| Object | next()
Returns the next preceding sibling.
|
| void | remove()
This operation is not supported.
|
preceding-sibling axis iterator.
Parameters: contextNode the node to start from navigator the object model specific navigator
Returns: true if any preceding siblings remain; false otherwise
See Also: java.util.Iterator#hasNext()
Returns: the next preceding sibling
Throws: NoSuchElementException if no preceding siblings remain
See Also: java.util.Iterator#next()
Throws: UnsupportedOperationException