org.jaxen.util

Class FollowingSiblingAxisIterator

public class FollowingSiblingAxisIterator extends Object implements Iterator

Represents the XPath following-sibling axis. The "following-sibling axis contains all the folowing siblings of the context node; if the context node is an attribute node or namespace node, the following-sibling axis is empty."

Version: 1.2b12

Field Summary
ObjectcontextNode
Navigatornavigator
IteratorsiblingIter
Constructor Summary
FollowingSiblingAxisIterator(Object contextNode, Navigator navigator)
Create a new following-sibling axis iterator.
Method Summary
booleanhasNext()
Returns true if there are any following siblings remain; false otherwise.
voidinit()
Objectnext()
Returns the next following sibling.
voidremove()
This operation is not supported.

Field Detail

contextNode

private Object contextNode

navigator

private Navigator navigator

siblingIter

private Iterator siblingIter

Constructor Detail

FollowingSiblingAxisIterator

public FollowingSiblingAxisIterator(Object contextNode, Navigator navigator)
Create a new following-sibling axis iterator.

Parameters: contextNode the node to start from navigator the object model specific navigator

Method Detail

hasNext

public boolean hasNext()
Returns true if there are any following siblings remain; false otherwise.

Returns: true if any following siblings remain; false otherwise

See Also: java.util.Iterator#hasNext()

init

private void init()

next

public Object next()
Returns the next following sibling.

Returns: the next following sibling

Throws: NoSuchElementException if no following siblings remain

See Also: java.util.Iterator#next()

remove

public void remove()
This operation is not supported.

Throws: UnsupportedOperationException always