Package org.apache.pivot.xml
Interface ElementListener
-
- All Known Implementing Classes:
ElementListener.Adapter
,ElementListener.Listeners
public interface ElementListener
Element listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ElementListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
ElementListener.Listeners
Element listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
attributeInserted(Element element, int index)
Called when an attribute has been added to an element.default void
attributesRemoved(Element element, int index, Sequence<Element.Attribute> attributes)
Called when attributes have been removed from an element.default void
attributeValueChanged(Element.Attribute attribute, java.lang.String previousValue)
Called when an attribute's value has changed.default void
defaultNamespaceURIChanged(Element element, java.lang.String previousDefaultNamespaceURI)
Called when an element's default namespace URI has changed.default void
namespaceAdded(Element element, java.lang.String prefix)
Called when a namespace has been added to an element.default void
namespaceRemoved(Element element, java.lang.String prefix, java.lang.String uri)
Called when a namespace has been removed from an element.default void
namespaceUpdated(Element element, java.lang.String prefix, java.lang.String previousURI)
Called when a namespaceURI
has been updated.
-
-
-
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 namespaceURI
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
- TheURI
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.
-
-