|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NodeStateDiff
Handler of node state differences.
The NodeStore.compare(NodeState, NodeState, NodeStateDiff) reports
detected node state differences by calling methods of a handler instance
that implements this interface. The compare method will go through all
properties and child nodes of the two states, calling the relevant
added, changed or deleted methods where appropriate. Differences in
the ordering of properties or child nodes do not affect the comparison,
and the order in which such differences are reported is unspecified.
| Method Summary | |
|---|---|
void |
childNodeAdded(String name,
NodeState after)
Called for all added child nodes. |
void |
childNodeChanged(String name,
NodeState before,
NodeState after)
Called for all changed child nodes. |
void |
childNodeDeleted(String name,
NodeState before)
Called for all deleted child nodes. |
void |
propertyAdded(PropertyState after)
Called for all added properties. |
void |
propertyChanged(PropertyState before,
PropertyState after)
Called for all changed properties. |
void |
propertyDeleted(PropertyState before)
Called for all deleted properties. |
| Method Detail |
|---|
void propertyAdded(PropertyState after)
after - property state after the change
void propertyChanged(PropertyState before,
PropertyState after)
before - property state before the changeafter - property state after the changevoid propertyDeleted(PropertyState before)
before - property state before the change
void childNodeAdded(String name,
NodeState after)
name - name of the added child nodeafter - child node state after the change
void childNodeChanged(String name,
NodeState before,
NodeState after)
name - name of the changed child nodebefore - child node state before the changeafter - child node state after the change
void childNodeDeleted(String name,
NodeState before)
name - name of the deleted child nodebefore - child node state before the change
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||