Class MergingNodeStateDiff
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.state.DefaultNodeStateDiff
-
- org.apache.jackrabbit.oak.plugins.commit.MergingNodeStateDiff
-
- All Implemented Interfaces:
NodeStateDiff
public final class MergingNodeStateDiff extends DefaultNodeStateDiff
MergingNodeStateDiff... TODO
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.jackrabbit.oak.spi.state.DefaultNodeStateDiff
childNodeDeleted, propertyAdded, propertyChanged, propertyDeleted
-
-
-
-
Method Detail
-
childNodeAdded
public boolean childNodeAdded(java.lang.String name, NodeState after)
Description copied from interface:NodeStateDiff
Called for all added child nodes.- Specified by:
childNodeAdded
in interfaceNodeStateDiff
- Overrides:
childNodeAdded
in classDefaultNodeStateDiff
- Parameters:
name
- name of the added child nodeafter
- child node state after the change- Returns:
true
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.
-
childNodeChanged
public boolean childNodeChanged(java.lang.String name, NodeState before, NodeState after)
Description copied from interface:NodeStateDiff
Called for all child nodes that may contain changes between the before and after states. The comparison implementation is expected to make an effort to avoid calling this method on child nodes under which nothing has changed.- Specified by:
childNodeChanged
in interfaceNodeStateDiff
- Overrides:
childNodeChanged
in classDefaultNodeStateDiff
- Parameters:
name
- name of the changed child nodebefore
- child node state before the changeafter
- child node state after the change- Returns:
true
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.
-
-