Package org.jaxen.expr.iter
Class IterableChildAxis
java.lang.Object
org.jaxen.expr.iter.IterableAxis
org.jaxen.expr.iter.IterableChildAxis
- All Implemented Interfaces:
Serializable
Provide access to the child xpath axis.
- Author:
- Bob McWhirter, James Strachan, Stephen Colebourne
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioniterator
(Object contextNode, ContextSupport support) Gets the iterator for the child axis.namedAccessIterator
(Object contextNode, ContextSupport support, String localName, String namespacePrefix, String namespaceURI) Gets an iterator for the child XPath axis that supports named access.boolean
supportsNamedAccess
(ContextSupport support) Does this axis support named access?Methods inherited from class org.jaxen.expr.iter.IterableAxis
value
-
Constructor Details
-
IterableChildAxis
public IterableChildAxis(int value) Constructor.- Parameters:
value
- the axis value
-
-
Method Details
-
iterator
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException Gets the iterator for the child axis.- Specified by:
iterator
in classIterableAxis
- Parameters:
contextNode
- the current context node to work fromsupport
- 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) throws UnsupportedAxisException Gets an iterator for the child XPath axis that supports named access.- Overrides:
namedAccessIterator
in classIterableAxis
- Parameters:
contextNode
- the current context node to work fromsupport
- the additional context informationlocalName
- the local name of the children to returnnamespacePrefix
- the prefix of the namespace of the children to returnnamespaceURI
- 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
Does this axis support named access?- Overrides:
supportsNamedAccess
in classIterableAxis
- Parameters:
support
- the additional context information- Returns:
- true if named access supported. If not iterator() will be used
-