org.jaxen.expr.iter
Class IterableChildAxis
java.lang.Object
org.jaxen.expr.iter.IterableAxis
org.jaxen.expr.iter.IterableChildAxis
- All Implemented Interfaces:
- java.io.Serializable
- public class IterableChildAxis
- extends IterableAxis
Provide access to the child xpath axis.
- Author:
- Bob McWhirter, James Strachan, Stephen Colebourne
- See Also:
- Serialized Form
Fields inherited from class org.jaxen.expr.iter.IterableAxis |
|
Method Summary |
java.util.Iterator |
iterator(java.lang.Object contextNode,
ContextSupport support)
Gets the iterator for the child axis. |
java.util.Iterator |
namedAccessIterator(java.lang.Object contextNode,
ContextSupport support,
java.lang.String localName,
java.lang.String namespacePrefix,
java.lang.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
IterableChildAxis
public IterableChildAxis(int value)
- Constructor.
- Parameters:
value
- the axis value
iterator
public java.util.Iterator iterator(java.lang.Object contextNode,
ContextSupport support)
throws UnsupportedAxisException
- Gets the iterator for the child axis.
- Specified by:
iterator
in class IterableAxis
- 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 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 an iterator for the child XPath axis that supports named access.
- Overrides:
namedAccessIterator
in class IterableAxis
- 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
public boolean supportsNamedAccess(ContextSupport support)
- Does this axis support named access?
- Overrides:
supportsNamedAccess
in class IterableAxis
- Parameters:
support
- the additional context information
- Returns:
- true if named access supported. If not iterator() will be used