public class NodeDelta extends Object implements NodeDiffHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeDelta.Conflict |
static class |
NodeDelta.ConflictType |
| Constructor and Description |
|---|
NodeDelta(StoredNode node1,
StoredNode node2) |
| Modifier and Type | Method and Description |
|---|---|
void |
childNodeAdded(ChildNodeEntry added) |
void |
childNodeChanged(ChildNodeEntry changed,
Id newId) |
void |
childNodeDeleted(ChildNodeEntry deleted) |
boolean |
conflictsWith(NodeDelta other) |
Map<String,Id> |
getAddedChildNodes() |
Map<String,String> |
getAddedProperties() |
Map<String,Id> |
getChangedChildNodes() |
Map<String,String> |
getChangedProperties() |
Map<String,Id> |
getRemovedChildNodes() |
Map<String,String> |
getRemovedProperties() |
List<NodeDelta.Conflict> |
listConflicts(NodeDelta other) |
void |
propAdded(String propName,
String value) |
void |
propChanged(String propName,
String oldValue,
String newValue) |
void |
propDeleted(String propName,
String value) |
public NodeDelta(StoredNode node1, StoredNode node2)
public boolean conflictsWith(NodeDelta other)
public List<NodeDelta.Conflict> listConflicts(NodeDelta other)
public void propAdded(String propName, String value)
propAdded in interface NodeDiffHandlerpublic void propChanged(String propName, String oldValue, String newValue)
propChanged in interface NodeDiffHandlerpublic void propDeleted(String propName, String value)
propDeleted in interface NodeDiffHandlerpublic void childNodeAdded(ChildNodeEntry added)
childNodeAdded in interface NodeDiffHandlerpublic void childNodeDeleted(ChildNodeEntry deleted)
childNodeDeleted in interface NodeDiffHandlerpublic void childNodeChanged(ChildNodeEntry changed, Id newId)
childNodeChanged in interface NodeDiffHandlerCopyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.