Class 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 as xmlns and xmlns:prefix. It does include attributes defaulted from the DTD.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      IterableAttributeAxis​(int value)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator iterator​(java.lang.Object contextNode, ContextSupport support)
      Gets an iterator for the attribute 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 attribute 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
    • Constructor Detail

      • IterableAttributeAxis

        public IterableAttributeAxis​(int value)
        Constructor.
        Parameters:
        value - the axis value
    • Method Detail

      • 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 attribute 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 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
        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 is supported. If not iterator() will be used.