org.jaxen.expr.iter

Class IterableAttributeAxis

public class IterableAttributeAxis extends IterableAxis

Provide access to the XPath attribute axis. This axis does not include namespace declarations such as xmlns and xmlns:prefix. It does include attributes defaulted from the DTD.

Author: Bob McWhirter James Strachan Stephen Colebourne

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

Field Detail

serialVersionUID

private static final long serialVersionUID

Constructor Detail

IterableAttributeAxis

public IterableAttributeAxis(int value)
Constructor.

Parameters: value the axis value

Method Detail

iterator

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

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

namedAccessIterator

public Iterator namedAccessIterator(Object contextNode, ContextSupport support, String localName, String namespacePrefix, String namespaceURI)
Gets the iterator for the attribute 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 attributes to return namespacePrefix the prefix of the namespace of the attributes to return namespaceURI the uri of the namespace of the attributes 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 is supported. If not iterator() will be used.