Package org.jaxen.expr.iter
Class IterableAxis
- java.lang.Object
-
- org.jaxen.expr.iter.IterableAxis
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
IterableAncestorAxis
,IterableAncestorOrSelfAxis
,IterableAttributeAxis
,IterableChildAxis
,IterableDescendantAxis
,IterableDescendantOrSelfAxis
,IterableFollowingAxis
,IterableFollowingSiblingAxis
,IterableNamespaceAxis
,IterableParentAxis
,IterablePrecedingAxis
,IterablePrecedingSiblingAxis
,IterableSelfAxis
public abstract class IterableAxis extends java.lang.Object implements java.io.Serializable
Provide access to the XPath axes.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
value
The axis type
-
Constructor Summary
Constructors Constructor Description IterableAxis(int axisValue)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.Iterator
iterator(java.lang.Object contextNode, ContextSupport support)
Gets the iterator for a specific XPath axis.java.util.Iterator
namedAccessIterator(java.lang.Object contextNode, ContextSupport support, java.lang.String localName, java.lang.String namespacePrefix, java.lang.String namespaceURI)
Gets the iterator for a specific XPath axis that supports named access.boolean
supportsNamedAccess(ContextSupport support)
Does this axis support named access?int
value()
Gets the axis value.
-
-
-
Method Detail
-
value
public int value()
Gets the axis value.- Returns:
- the axis value
-
iterator
public abstract java.util.Iterator iterator(java.lang.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 java.util.Iterator namedAccessIterator(java.lang.Object contextNode, ContextSupport support, java.lang.String localName, java.lang.String namespacePrefix, java.lang.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
public boolean supportsNamedAccess(ContextSupport support)
Does this axis support named access?- Parameters:
support
- the additional context information- Returns:
- true if named access supported. If not iterator() will be used
-
-