Class IterableAxis
java.lang.Object
org.jaxen.expr.iter.IterableAxis
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IterableAncestorAxis, IterableAncestorOrSelfAxis, IterableAttributeAxis, IterableChildAxis, IterableDescendantAxis, IterableDescendantOrSelfAxis, IterableFollowingAxis, IterableFollowingSiblingAxis, IterableNamespaceAxis, IterableParentAxis, IterablePrecedingAxis, IterablePrecedingSiblingAxis, IterableSelfAxis
Provide access to the XPath axes.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Iteratoriterator(Object contextNode, ContextSupport support) Gets the iterator for a specific XPath axis.namedAccessIterator(Object contextNode, ContextSupport support, String localName, String namespacePrefix, String namespaceURI) Gets the iterator for a specific XPath axis that supports named access.booleansupportsNamedAccess(ContextSupport support) Does this axis support named access?intvalue()Gets the axis value.
-
Field Details
-
value
private int valueThe axis type
-
-
Constructor Details
-
IterableAxis
public IterableAxis(int axisValue) Constructor.- Parameters:
axisValue-
-
-
Method Details
-
value
public int value()Gets the axis value.- Returns:
- the axis value
-
iterator
public abstract Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException Gets the iterator for a specific XPath axis.- Parameters:
contextNode- the current context node to work fromsupport- the additional context information- Returns:
- an iterator for the axis
- Throws:
UnsupportedAxisException
-
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.- Parameters:
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- Throws:
UnsupportedAxisException
-
supportsNamedAccess
Does this axis support named access?- Parameters:
support- the additional context information- Returns:
- true if named access supported. If not iterator() will be used
-