org.jaxen.util

Class FollowingAxisIterator

public class FollowingAxisIterator extends 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
ObjectcontextNode
IteratorcurrentSibling
Navigatornavigator
Iteratorsiblings
Constructor Summary
FollowingAxisIterator(Object contextNode, Navigator navigator)
Create a new following axis iterator.
Method Summary
booleangoForward()
booleangoUp()
booleanhasNext()
Returns true if there are any following nodes remaining; false otherwise.
Objectnext()
Returns the next following node.
voidremove()
This operation is not supported.

Field Detail

contextNode

private Object contextNode

currentSibling

private Iterator currentSibling

navigator

private Navigator navigator

siblings

private Iterator siblings

Constructor Detail

FollowingAxisIterator

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

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

Method Detail

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()
Returns the next following node.

Returns: the next following node

Throws: NoSuchElementException if no following nodes remain

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

remove

public void remove()
This operation is not supported.

Throws: UnsupportedOperationException always