org.jaxen.expr.iter
Class IterableChildAxis

java.lang.Object
  extended byorg.jaxen.expr.iter.IterableAxis
      extended byorg.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

Constructor Summary
IterableChildAxis(int value)
          Constructor.
 
Method Summary
 java.util.Iterator iterator(java.lang.Object contextNode, ContextSupport support)
          Gets the iterator for the child 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 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterableChildAxis

public IterableChildAxis(int value)
Constructor.

Parameters:
value - the axis value
Method Detail

iterator

public java.util.Iterator iterator(java.lang.Object contextNode,
                                   ContextSupport support)
                            throws UnsupportedAxisException
Gets the iterator for the child xpath axis.

Specified by:
iterator in class IterableAxis
Parameters:
contextNode - the current context node to work from
support - the additional context information
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 the child xpath axis that supports named access.

Overrides:
namedAccessIterator in class IterableAxis
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
Throws:
UnsupportedAxisException

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


Copyright © 2001-2005 Codehaus. All Rights Reserved.