org.jaxen.expr.iter
Class IterableAxis
java.lang.Object
org.jaxen.expr.iter.IterableAxis
- Serializable
public abstract class IterableAxis
extends java.lang.Object
implements Serializable
Provide access to the XPath axes.
- Bob McWhirter
- James Strachan
- Stephen Colebourne
private int | value - The axis type
|
value
private int value
The axis type
IterableAxis
public IterableAxis(int axisValue)
Constructor.
iterator
public abstract Iterator iterator(Object contextNode,
ContextSupport support)
throws UnsupportedAxisException
Gets the iterator for a specific XPath axis.
contextNode
- the current context node to work fromsupport
- the additional context information
namedAccessIterator
public Iterator namedAccessIterator(Object contextNode,
ContextSupport support,
String localName,
String namespacePrefix,
String namespaceURI)
throws UnsupportedAxisException
Gets the iterator for a specific XPath axis that supports named access.
contextNode
- the current context node to work fromsupport
- the additional context informationlocalName
- the local name of the nodes to returnnamespacePrefix
- the prefix of the namespace of the nodes to returnnamespaceURI
- the URI of the namespace of the nodes to return
supportsNamedAccess
public boolean supportsNamedAccess(ContextSupport support)
Does this axis support named access?
support
- the additional context information
- true if named access supported. If not iterator() will be used
value
public int value()
Gets the axis value.