|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@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.
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 |
---|
void nodeDelete(Node node, boolean changesIdLevel)
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).void nodeAdded(Node node, boolean changesIdLevel)
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.
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).void nodeModified(ChangeTracer tracer, boolean changesIdLevel)
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:
nodeDelete()
on this node.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.
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).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |