public interface NodeStateDiff
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.| Modifier and Type | Method and Description |
|---|---|
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.
|
void propertyAdded(PropertyState after)
after - property state after the changevoid propertyChanged(PropertyState before, PropertyState after)
before - property state before the changeafter - property state after the changevoid propertyDeleted(PropertyState before)
before - property state before the changevoid childNodeAdded(String name, NodeState after)
name - name of the added child nodeafter - child node state after the changevoid 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 changeCopyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.