org.jaxen.expr.iter

Class IterableAxis

public abstract class IterableAxis extends Object implements Serializable

Provide access to the XPath axes.

Author: Bob McWhirter James Strachan Stephen Colebourne

Field Summary
intvalue
The axis type
Constructor Summary
IterableAxis(int axisValue)
Constructor.
Method Summary
abstract Iteratoriterator(Object contextNode, ContextSupport support)
Gets the iterator for a specific XPath axis.
IteratornamedAccessIterator(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 Detail

value

private int value
The axis type

Constructor Detail

IterableAxis

public IterableAxis(int axisValue)
Constructor.

Parameters: axisValue

Method Detail

iterator

public abstract Iterator iterator(Object contextNode, ContextSupport support)
Gets the iterator for a specific XPath axis.

Parameters: contextNode the current context node to work from support 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)
Gets the iterator for a specific XPath axis that supports named access.

Parameters: contextNode the current context node to work from support the additional context information localName the local name of the nodes to return namespacePrefix the prefix of the namespace of the nodes to return namespaceURI the URI of the namespace of the nodes to return

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

value

public int value()
Gets the axis value.

Returns: the axis value