net.sourceforge.jsxe.dom
Interface XMLDocumentListener


public interface XMLDocumentListener

XMLDocumentListener is used to notify objects of a change to the XMLDocument.

Version:
$Id: XMLDocumentListener.java 610 2005-04-15 20:01:09Z ian_lewis $
Author:
Ian Lewis (IanLewis@member.fsf.org)
See Also:
XMLDocument

Method Summary
 void propertyChanged(XMLDocument source, String key, String oldValue)
          Called when a property associated with the XMLDocument has changed.
 void structureChanged(XMLDocument source, AdapterNode location)
          Called when the structure of the XMLDocument has changed.
 

Method Detail

propertyChanged

public void propertyChanged(XMLDocument source,
                            String key,
                            String oldValue)
Called when a property associated with the XMLDocument has changed.

Parameters:
source - The source XMLDocument
key - the key to the property that changed
oldValue - the previous value of this key, null if there was none

structureChanged

public void structureChanged(XMLDocument source,
                             AdapterNode location)
Called when the structure of the XMLDocument has changed.

Parameters:
source - The source XMLDocument
location - The AdapterNode location where the change occurred. If a node was removed then this is the parent of the node that was removed. This could be null if the location is unknown.