Package org.jaxen.util
Class FollowingAxisIterator
- java.lang.Object
-
- org.jaxen.util.FollowingAxisIterator
-
- All Implemented Interfaces:
java.util.Iterator
public class FollowingAxisIterator extends java.lang.Object implements java.util.Iterator
Represents the XPathfollowing
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
Fields Modifier and Type Field Description private java.lang.Object
contextNode
private java.util.Iterator
currentSibling
private Navigator
navigator
private java.util.Iterator
siblings
-
Constructor Summary
Constructors Constructor Description FollowingAxisIterator(java.lang.Object contextNode, Navigator navigator)
Create a newfollowing
axis iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
goForward()
private boolean
goUp()
boolean
hasNext()
Returns true if there are any following nodes remaining; false otherwise.java.lang.Object
next()
Returns the next following node.void
remove()
This operation is not supported.
-
-
-
Field Detail
-
contextNode
private java.lang.Object contextNode
-
navigator
private Navigator navigator
-
siblings
private java.util.Iterator siblings
-
currentSibling
private java.util.Iterator currentSibling
-
-
Constructor Detail
-
FollowingAxisIterator
public FollowingAxisIterator(java.lang.Object contextNode, Navigator navigator) throws UnsupportedAxisException
Create a newfollowing
axis iterator.- Parameters:
contextNode
- the node to start fromnavigator
- the object model specific navigator- Throws:
UnsupportedAxisException
-
-
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.- Specified by:
hasNext
in interfacejava.util.Iterator
- Returns:
- true if any following nodes remain
- See Also:
Iterator.hasNext()
-
next
public java.lang.Object next() throws java.util.NoSuchElementException
Returns the next following node.- Specified by:
next
in interfacejava.util.Iterator
- Returns:
- the next following node
- Throws:
java.util.NoSuchElementException
- if no following nodes remain- See Also:
Iterator.next()
-
remove
public void remove() throws java.lang.UnsupportedOperationException
This operation is not supported.- Specified by:
remove
in interfacejava.util.Iterator
- Throws:
java.lang.UnsupportedOperationException
- always
-
-