Package org.jaxen.expr.iter
Class IterableAttributeAxis
- java.lang.Object
-
- org.jaxen.expr.iter.IterableAxis
-
- org.jaxen.expr.iter.IterableAttributeAxis
-
- All Implemented Interfaces:
java.io.Serializable
public class IterableAttributeAxis extends IterableAxis
Provide access to the XPath attribute axis. This axis does not include namespace declarations such asxmlnsandxmlns:prefix. It does include attributes defaulted from the DTD.- Author:
- Bob McWhirter, James Strachan, Stephen Colebourne
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IterableAttributeAxis(int value)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iteratoriterator(java.lang.Object contextNode, ContextSupport support)Gets an iterator for the attribute axis.java.util.IteratornamedAccessIterator(java.lang.Object contextNode, ContextSupport support, java.lang.String localName, java.lang.String namespacePrefix, java.lang.String namespaceURI)Gets the iterator for the attribute axis that supports named access.booleansupportsNamedAccess(ContextSupport support)Does this axis support named access?-
Methods inherited from class org.jaxen.expr.iter.IterableAxis
value
-
-
-
-
Method Detail
-
iterator
public java.util.Iterator iterator(java.lang.Object contextNode, ContextSupport support) throws UnsupportedAxisExceptionGets an iterator for the attribute axis.- Specified by:
iteratorin classIterableAxis- Parameters:
contextNode- the current context node to work fromsupport- the additional context information- Returns:
- an iterator for the axis
- 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 UnsupportedAxisExceptionGets the iterator for the attribute axis that supports named access.- Overrides:
namedAccessIteratorin 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
public boolean supportsNamedAccess(ContextSupport support)
Does this axis support named access?- Overrides:
supportsNamedAccessin classIterableAxis- Parameters:
support- the additional context information- Returns:
- true if named access is supported. If not iterator() will be used.
-
-