org.apache.pivot.xml
Interface ElementListener

All Known Implementing Classes:
ElementListener.Adapter

public interface ElementListener

Element listener interface.


Nested Class Summary
static class ElementListener.Adapter
          Element listener adapter.
 
Method Summary
 void attributeInserted(Element element, int index)
          Called when an attribute has been added to an element.
 void attributesRemoved(Element element, int index, Sequence<Element.Attribute> attributes)
          Called when attributes have been removed from an element.
 void attributeValueChanged(Element.Attribute attribute, String previousValue)
          Called when an attribute's value has changed.
 void defaultNamespaceURIChanged(Element element, String previousDefaultNamespaceURI)
          Called when an element's default namespace URI has changed.
 void namespaceAdded(Element element, String prefix)
          Called when a namespace has been added to an element.
 void namespaceRemoved(Element element, String prefix, String uri)
          Called when a namespace has been removed from an element.
 void namespaceUpdated(Element element, String prefix, String previousURI)
          Called when an element attribute has been updated.
 

Method Detail

defaultNamespaceURIChanged

void defaultNamespaceURIChanged(Element element,
                                String previousDefaultNamespaceURI)
Called when an element's default namespace URI has changed.

Parameters:
element -
previousDefaultNamespaceURI -

namespaceAdded

void namespaceAdded(Element element,
                    String prefix)
Called when a namespace has been added to an element.

Parameters:
element -
prefix -

namespaceUpdated

void namespaceUpdated(Element element,
                      String prefix,
                      String previousURI)
Called when an element attribute has been updated.

Parameters:
element -
prefix -
previousURI -

namespaceRemoved

void namespaceRemoved(Element element,
                      String prefix,
                      String uri)
Called when a namespace has been removed from an element.

Parameters:
element -
prefix -
uri -

attributeInserted

void attributeInserted(Element element,
                       int index)
Called when an attribute has been added to an element.

Parameters:
element -
index -

attributesRemoved

void attributesRemoved(Element element,
                       int index,
                       Sequence<Element.Attribute> attributes)
Called when attributes have been removed from an element.

Parameters:
element -
index -
attributes -

attributeValueChanged

void attributeValueChanged(Element.Attribute attribute,
                           String previousValue)
Called when an attribute's value has changed.

Parameters:
attribute -
previousValue -