org.jaxen.expr.iter

Class IterableChildAxis

public class IterableChildAxis extends IterableAxis

Provide access to the child xpath axis.

Author: Bob McWhirter James Strachan Stephen Colebourne

Field Summary
static longserialVersionUID
Constructor Summary
IterableChildAxis(int value)
Constructor.
Method Summary
Iteratoriterator(Object contextNode, ContextSupport support)
Gets the iterator for the child axis.
IteratornamedAccessIterator(Object contextNode, ContextSupport support, String localName, String namespacePrefix, String namespaceURI)
Gets an iterator for the child XPath axis that supports named access.
booleansupportsNamedAccess(ContextSupport support)
Does this axis support named access?

Field Detail

serialVersionUID

private static final long serialVersionUID

Constructor Detail

IterableChildAxis

public IterableChildAxis(int value)
Constructor.

Parameters: value the axis value

Method Detail

iterator

public Iterator iterator(Object contextNode, ContextSupport support)
Gets the iterator for the child axis.

Parameters: contextNode the current context node to work from support the additional context information

Returns: an iterator over the children of the context node

Throws: UnsupportedAxisException if the child axis is not supported

namedAccessIterator

public Iterator namedAccessIterator(Object contextNode, ContextSupport support, String localName, String namespacePrefix, String namespaceURI)
Gets an iterator for the child 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 children to return namespacePrefix the prefix of the namespace of the children to return namespaceURI the URI of the namespace of the children to return

Returns: an iterator over the children of the context node

Throws: UnsupportedAxisException if the child axis is not supported by the model

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