Package org.jaxen.expr.iter
Class IterableAttributeAxis
java.lang.Object
org.jaxen.expr.iter.IterableAxis
org.jaxen.expr.iter.IterableAttributeAxis
- All Implemented Interfaces:
Serializable
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.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioniterator
(Object contextNode, ContextSupport support) Gets an iterator for the attribute axis.namedAccessIterator
(Object contextNode, ContextSupport support, String localName, String namespacePrefix, String namespaceURI) Gets the iterator for the attribute 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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
IterableAttributeAxis
public IterableAttributeAxis(int value) Constructor.- Parameters:
value
- the axis value
-
-
Method Details
-
iterator
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException Gets an iterator for the attribute axis.- Specified by:
iterator
in classIterableAxis
- Parameters:
contextNode
- the current context node to work fromsupport
- the additional context information- Returns:
- an iterator for the axis
- Throws:
UnsupportedAxisException
-
namedAccessIterator
public Iterator namedAccessIterator(Object contextNode, ContextSupport support, String localName, String namespacePrefix, String namespaceURI) throws UnsupportedAxisException Gets the iterator for the attribute 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 attributes to returnnamespacePrefix
- the prefix of the namespace of the attributes to returnnamespaceURI
- the uri of the namespace of the attributes to return- Throws:
UnsupportedAxisException
-
supportsNamedAccess
Does this axis support named access?- Overrides:
supportsNamedAccess
in classIterableAxis
- Parameters:
support
- the additional context information- Returns:
- true if named access is supported. If not iterator() will be used.
-