public class JsopDiff extends java.lang.Object implements NodeStateDiff
| Constructor and Description |
|---|
JsopDiff() |
JsopDiff(BlobSerializer blobs) |
JsopDiff(BlobSerializer blobs,
java.lang.String path) |
JsopDiff(java.lang.String path,
int depth) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
childNodeAdded(java.lang.String name,
NodeState after)
Called for all added child nodes.
|
boolean |
childNodeChanged(java.lang.String name,
NodeState before,
NodeState after)
Called for all child nodes that may contain changes between the before
and after states.
|
boolean |
childNodeDeleted(java.lang.String name,
NodeState before)
Called for all deleted child nodes.
|
static java.lang.String |
diffToJsop(NodeState before,
NodeState after)
Create the JSOP diff between
before and after for
debugging purposes. |
boolean |
propertyAdded(PropertyState after)
Called for all added properties.
|
boolean |
propertyChanged(PropertyState before,
PropertyState after)
Called for all changed properties.
|
boolean |
propertyDeleted(PropertyState before)
Called for all deleted properties.
|
java.lang.String |
toString() |
public JsopDiff(BlobSerializer blobs, java.lang.String path)
public JsopDiff(BlobSerializer blobs)
public JsopDiff(java.lang.String path,
int depth)
public JsopDiff()
public static java.lang.String diffToJsop(NodeState before, NodeState after)
before and after for
debugging purposes.
This method does not store binaries but returns them inlined
in the format Blob{...}, where the ...
is implementation-dependent - typically the SHA256 hash of the binary.
before - before node stateafter - after node statebefore and afterpublic boolean propertyAdded(PropertyState after)
NodeStateDiffpropertyAdded in interface NodeStateDiffafter - property state after the changetrue to continue the comparison, false to abort.
Abort will stop comparing completely, that means sibling nodes
and sibling nodes of all parents are not further compared.public boolean propertyChanged(PropertyState before, PropertyState after)
NodeStateDiffpropertyChanged in interface NodeStateDiffbefore - property state before the changeafter - property state after the changetrue to continue the comparison, false to abort.
Abort will stop comparing completely, that means sibling nodes
and sibling nodes of all parents are not further compared.public boolean propertyDeleted(PropertyState before)
NodeStateDiffpropertyDeleted in interface NodeStateDiffbefore - property state before the changetrue to continue the comparison, false to abort.
Abort will stop comparing completely, that means sibling nodes
and sibling nodes of all parents are not further compared.public boolean childNodeAdded(java.lang.String name,
NodeState after)
NodeStateDiffchildNodeAdded in interface NodeStateDiffname - name of the added child nodeafter - child node state after the changetrue to continue the comparison, false to abort.
Abort will stop comparing completely, that means sibling nodes
and sibling nodes of all parents are not further compared.public boolean childNodeDeleted(java.lang.String name,
NodeState before)
NodeStateDiffchildNodeDeleted in interface NodeStateDiffname - name of the deleted child nodebefore - child node state before the changetrue to continue the comparison, false to abort.
Abort will stop comparing completely, that means sibling nodes
and sibling nodes of all parents are not further compared.public boolean childNodeChanged(java.lang.String name,
NodeState before,
NodeState after)
NodeStateDiffchildNodeChanged in interface NodeStateDiffname - name of the changed child nodebefore - child node state before the changeafter - child node state after the changetrue to continue the comparison, false to abort.
Abort will stop comparing completely, that means sibling nodes
and sibling nodes of all parents are not further compared.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved