org.jaxen.util

Class FollowingSiblingAxisIterator

Implemented Interfaces:
Iterator

public class FollowingSiblingAxisIterator
extends java.lang.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

private Object
contextNode
private Navigator
navigator
private Iterator
siblingIter

Constructor Summary

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

Method Summary

boolean
hasNext()
Returns true if there are any following siblings remain; false otherwise.
private void
init()
Object
next()
Returns the next following sibling.
void
remove()
This operation is not supported.

Field Details

contextNode

private Object contextNode

navigator

private Navigator navigator

siblingIter

private Iterator siblingIter

Constructor Details

FollowingSiblingAxisIterator

public FollowingSiblingAxisIterator(Object contextNode,
                                    Navigator navigator)
            throws UnsupportedAxisException
Create a new following-sibling axis iterator.
Parameters:
contextNode - the node to start from
navigator - the object model specific navigator

Method Details

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()
            throws UnsupportedAxisException

next

public Object next()
            throws NoSuchElementException
Returns the next following sibling.
Returns:
the next following sibling
See Also:
java.util.Iterator.next()

remove

public void remove()
            throws UnsupportedOperationException
This operation is not supported.