Package org.apache.pivot.xml
Class ElementListener.Adapter
- java.lang.Object
-
- org.apache.pivot.xml.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.xml.ElementListener
ElementListener.Adapter, ElementListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
attributeInserted(Element element, int index)
Deprecated.Called when an attribute has been added to an element.void
attributesRemoved(Element element, int index, Sequence<Element.Attribute> attributes)
Deprecated.Called when attributes have been removed from an element.void
attributeValueChanged(Element.Attribute attribute, java.lang.String previousValue)
Deprecated.Called when an attribute's value has changed.void
defaultNamespaceURIChanged(Element element, java.lang.String previousDefaultNamespaceURI)
Deprecated.Called when an element's default namespace URI has changed.void
namespaceAdded(Element element, java.lang.String prefix)
Deprecated.Called when a namespace has been added to an element.void
namespaceRemoved(Element element, java.lang.String prefix, java.lang.String uri)
Deprecated.Called when a namespace has been removed from an element.void
namespaceUpdated(Element element, java.lang.String prefix, java.lang.String previousURI)
Deprecated.Called when a namespaceURI
has been updated.
-
-
-
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 interfaceElementListener
- 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 interfaceElementListener
- 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 namespaceURI
has been updated.- Specified by:
namespaceUpdated
in interfaceElementListener
- 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 interfaceElementListener
- Parameters:
element
- The element that is changing.prefix
- The namespace prefix that has been removed.uri
- TheURI
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 interfaceElementListener
- 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 interfaceElementListener
- 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 interfaceElementListener
- Parameters:
attribute
- The attribute whose value has changed.previousValue
- The previous value for this attribute.
-
-