Class ElementListener.Adapter

  • All Implemented Interfaces:
    ElementListener
    Enclosing interface:
    ElementListener

    @Deprecated
    public static final class ElementListener.Adapter
    extends java.lang.Object
    implements ElementListener
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    Element listener adapter.
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • defaultNamespaceURIChanged

        public void defaultNamespaceURIChanged​(Element element,
                                               java.lang.String previousDefaultNamespaceURI)
        Deprecated.
        Description copied from interface: ElementListener
        Called when an element's default namespace URI has changed.
        Specified by:
        defaultNamespaceURIChanged in interface ElementListener
        Parameters:
        element - The element that has changed.
        previousDefaultNamespaceURI - The previous value of the default namespace URI.
      • namespaceAdded

        public void namespaceAdded​(Element element,
                                   java.lang.String prefix)
        Deprecated.
        Description copied from interface: ElementListener
        Called when a namespace has been added to an element.
        Specified by:
        namespaceAdded in interface ElementListener
        Parameters:
        element - The element that has been changed.
        prefix - The new namespace prefix that has been set.
      • namespaceUpdated

        public void namespaceUpdated​(Element element,
                                     java.lang.String prefix,
                                     java.lang.String previousURI)
        Deprecated.
        Description copied from interface: ElementListener
        Called when a namespace URI has been updated.
        Specified by:
        namespaceUpdated in interface ElementListener
        Parameters:
        element - The element that has had the namespace updated.
        prefix - The namespace prefix for this element.
        previousURI - The previous value of the namespace URI.
      • namespaceRemoved

        public void namespaceRemoved​(Element element,
                                     java.lang.String prefix,
                                     java.lang.String uri)
        Deprecated.
        Description copied from interface: ElementListener
        Called when a namespace has been removed from an element.
        Specified by:
        namespaceRemoved in interface ElementListener
        Parameters:
        element - The element that is changing.
        prefix - The namespace prefix that has been removed.
        uri - The URI that was removed.
      • attributeInserted

        public void attributeInserted​(Element element,
                                      int index)
        Deprecated.
        Description copied from interface: ElementListener
        Called when an attribute has been added to an element.
        Specified by:
        attributeInserted in interface ElementListener
        Parameters:
        element - The element that has changed.
        index - The index where the new attribute was added.
      • attributesRemoved

        public void attributesRemoved​(Element element,
                                      int index,
                                      Sequence<Element.Attribute> attributes)
        Deprecated.
        Description copied from interface: ElementListener
        Called when attributes have been removed from an element.
        Specified by:
        attributesRemoved in interface ElementListener
        Parameters:
        element - The element that has changed.
        index - Starting index of the attributes that were removed.
        attributes - The sequence of removed attributes.
      • attributeValueChanged

        public void attributeValueChanged​(Element.Attribute attribute,
                                          java.lang.String previousValue)
        Deprecated.
        Description copied from interface: ElementListener
        Called when an attribute's value has changed.
        Specified by:
        attributeValueChanged in interface ElementListener
        Parameters:
        attribute - The attribute whose value has changed.
        previousValue - The previous value for this attribute.