com.openharbor.xmlj.observer
Interface ObservableElement.Observer

Enclosing interface:
ObservableElement

public static interface ObservableElement.Observer


Method Summary
 void attributeChanged(ObservableElement element, com.openharbor.beck.xml.XMLName key, java.lang.String oldValue, java.lang.String newValue)
          Note that an attribute has changed.
 void subElementChanged(ObservableElement parent, int index, Element oldChild, Element newChild)
          Note that a subElement has changed.
 void valueChanged(ObservableElement element, java.lang.String oldValue, java.lang.String newValue)
          Note that a value has changed.
 

Method Detail

valueChanged

public void valueChanged(ObservableElement element,
                         java.lang.String oldValue,
                         java.lang.String newValue)
Note that a value has changed.

Parameters:
element - the object that contains the value.
oldValue - the previous value.
newValue - the new value.

attributeChanged

public void attributeChanged(ObservableElement element,
                             com.openharbor.beck.xml.XMLName key,
                             java.lang.String oldValue,
                             java.lang.String newValue)
Note that an attribute has changed.

Parameters:
element - the object that contains the attribute.
key - the attribute name.
oldValue - the previous value of this attribute, or null if the attribute was previously absent.
newValue - the current value of this attribute, or null if the attribute has been removed.

subElementChanged

public void subElementChanged(ObservableElement parent,
                              int index,
                              Element oldChild,
                              Element newChild)
Note that a subElement has changed.

Parameters:
parent - the object that contains the subElement.
index - the index of the changed subElement.
oldChild - the previous child at that index, or null if the child was inserted.
newChild - the current child at that index, or null if the child was removed.