Interface ElementListener

    • Method Detail

      • defaultNamespaceURIChanged

        default void defaultNamespaceURIChanged​(Element element,
                                                java.lang.String previousDefaultNamespaceURI)
        Called when an element's default namespace URI has changed.
        Parameters:
        element - The element that has changed.
        previousDefaultNamespaceURI - The previous value of the default namespace URI.
      • namespaceAdded

        default void namespaceAdded​(Element element,
                                    java.lang.String prefix)
        Called when a namespace has been added to an element.
        Parameters:
        element - The element that has been changed.
        prefix - The new namespace prefix that has been set.
      • namespaceUpdated

        default void namespaceUpdated​(Element element,
                                      java.lang.String prefix,
                                      java.lang.String previousURI)
        Called when a namespace URI has been updated.
        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

        default void namespaceRemoved​(Element element,
                                      java.lang.String prefix,
                                      java.lang.String uri)
        Called when a namespace has been removed from an element.
        Parameters:
        element - The element that is changing.
        prefix - The namespace prefix that has been removed.
        uri - The URI that was removed.
      • attributeInserted

        default void attributeInserted​(Element element,
                                       int index)
        Called when an attribute has been added to an element.
        Parameters:
        element - The element that has changed.
        index - The index where the new attribute was added.
      • attributesRemoved

        default void attributesRemoved​(Element element,
                                       int index,
                                       Sequence<Element.Attribute> attributes)
        Called when attributes have been removed from an element.
        Parameters:
        element - The element that has changed.
        index - Starting index of the attributes that were removed.
        attributes - The sequence of removed attributes.
      • attributeValueChanged

        default void attributeValueChanged​(Element.Attribute attribute,
                                           java.lang.String previousValue)
        Called when an attribute's value has changed.
        Parameters:
        attribute - The attribute whose value has changed.
        previousValue - The previous value for this attribute.