sk.uniba.euromath.document
Interface IModifierListener


Deprecated. use DOM 2 Events

@Deprecated
public interface IModifierListener

Informs about the document modification operations.

In case the listener modifies the document it should make sure not to cause an endless loop, for example by modifying current node in the nodeModified(ChangeTracer, boolean) method etc.

Author:
Martin Vysny

Method Summary
 void nodeAdded(Node node, boolean changesIdLevel)
          Deprecated.  Informs this splitted document that this node has been added to original document.
 void nodeDelete(Node node, boolean changesIdLevel)
          Deprecated. Informs the class that this node is about to be deleted from document.
 void nodeModified(ChangeTracer tracer, boolean changesIdLevel)
          Deprecated.  Informs splitted document, that node has been modified (for example, Text had changed its text value to a non-empty value).
 

Method Detail

nodeDelete

void nodeDelete(Node node,
                boolean changesIdLevel)
Deprecated. 
Informs the class that this node is about to be deleted from document. The node is still present in the document.

Parameters:
node - node from document that is about to be deleted.
changesIdLevel - if false then the change itself changes the ID level however it is part of a bigger change that does not affect the ID level (for example splitting the text node consists of modification and creation, they both affect ID level however together they does not).

nodeAdded

void nodeAdded(Node node,
               boolean changesIdLevel)
Deprecated. 

Informs this splitted document that this node has been added to original document. Node complies to these rules:

emp:id attributes are also reflected into splitted document so the node and its descendants must already have this attribute.

If multiple nodes are added to the document then only 'topmost' nodes are reported. In other words, if we report node n then its descendants must not be reported.

Parameters:
node - node that has been added.
changesIdLevel - if false then the change itself changes the ID level however it is part of a bigger change that does not affect the ID level (for example splitting the text node consists of modification and creation, they both affect ID level however together they does not).

nodeModified

void nodeModified(ChangeTracer tracer,
                  boolean changesIdLevel)
Deprecated. 

Informs splitted document, that node has been modified (for example, Text had changed its text value to a non-empty value). Element can be reported to this method only if its local name was changed - if its children have been modified then appropriate methods must be called for each added/removed/modified child instead. Attribute node must be reported to this function only if its text value had changed.

If element contents had been changed (child added/removed/etc.), then this method must not be called. Instead, for every modified child an appropriate method must be called. If node changes completely, then it should be reported as follows:

  1. First, call nodeDelete() on this node.
  2. Then, modify the node, or even replace it with another one.
  3. Then call nodeAdded() with this new node.

If an attribute node had changed its namespace and/or qname, it must be reported by a call to nodeDeleted() and nodeAdded() functions.

Entity reference nodes must not be passed to this function.

Parameters:
tracer - traces the changes that had been done to the node.
changesIdLevel - if false then the change itself changes the ID level however it is part of a bigger change that does not affect the ID level (for example splitting the text node consists of modification and creation, they both affect ID level however together they does not).


Copyright © 2003-2006 null. All Rights Reserved.