public class PersistingDiff extends java.lang.Object implements NodeStateDiff
Modifier and Type | Method and Description |
---|---|
static SegmentNodeState |
applyDiffOnNodeState(FileStore fileStore,
@NotNull NodeState before,
@NotNull NodeState after,
@NotNull NodeState onto) |
boolean |
childNodeAdded(@NotNull java.lang.String name,
@NotNull NodeState after)
Called for all added child nodes.
|
boolean |
childNodeChanged(@NotNull java.lang.String name,
@NotNull NodeState before,
@NotNull 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.
|
boolean |
propertyAdded(@NotNull PropertyState after)
Called for all added properties.
|
boolean |
propertyChanged(@NotNull PropertyState before,
@NotNull PropertyState after)
Called for all changed properties.
|
boolean |
propertyDeleted(PropertyState before)
Called for all deleted properties.
|
public static SegmentNodeState applyDiffOnNodeState(FileStore fileStore, @NotNull @NotNull NodeState before, @NotNull @NotNull NodeState after, @NotNull @NotNull NodeState onto) throws java.io.IOException
java.io.IOException
public boolean propertyAdded(@NotNull @NotNull PropertyState after)
NodeStateDiff
propertyAdded
in interface NodeStateDiff
after
- 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(@NotNull @NotNull PropertyState before, @NotNull @NotNull PropertyState after)
NodeStateDiff
propertyChanged
in interface NodeStateDiff
before
- 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)
NodeStateDiff
propertyDeleted
in interface NodeStateDiff
before
- 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(@NotNull @NotNull java.lang.String name, @NotNull @NotNull NodeState after)
NodeStateDiff
childNodeAdded
in interface NodeStateDiff
name
- 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 childNodeChanged(@NotNull @NotNull java.lang.String name, @NotNull @NotNull NodeState before, @NotNull @NotNull NodeState after)
NodeStateDiff
childNodeChanged
in interface NodeStateDiff
name
- 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 boolean childNodeDeleted(java.lang.String name, NodeState before)
NodeStateDiff
childNodeDeleted
in interface NodeStateDiff
name
- 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.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.