org.jaxen.util

Class FollowingAxisIterator

Implemented Interfaces:
Iterator

public class FollowingAxisIterator
extends java.lang.Object
implements Iterator

Represents the XPath following axis. The "following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes."
Version:
1.2b12

Field Summary

private Object
contextNode
private Iterator
currentSibling
private Navigator
navigator
private Iterator
siblings

Constructor Summary

FollowingAxisIterator(Object contextNode, Navigator navigator)
Create a new following axis iterator.

Method Summary

private boolean
goForward()
private boolean
goUp()
boolean
hasNext()
Returns true if there are any following nodes remaining; false otherwise.
Object
next()
Returns the next following node.
void
remove()
This operation is not supported.

Field Details

contextNode

private Object contextNode

currentSibling

private Iterator currentSibling

navigator

private Navigator navigator

siblings

private Iterator siblings

Constructor Details

FollowingAxisIterator

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

Method Details

goForward

private boolean goForward()

goUp

private boolean goUp()

hasNext

public boolean hasNext()
Returns true if there are any following nodes remaining; false otherwise.
Returns:
true if any following nodes remain
See Also:
java.util.Iterator.hasNext()

next

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

remove

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