Class SubtreeEditor
java.lang.Object
org.apache.jackrabbit.oak.spi.commit.DefaultEditor
org.apache.jackrabbit.oak.spi.commit.SubtreeEditor
- All Implemented Interfaces:
Editor
Editor wrapper that passes only changes in the specified subtree to
the given delegate editor.
- Since:
- Oak 0.7
-
Field Summary
Fields inherited from class org.apache.jackrabbit.oak.spi.commit.DefaultEditor
INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable EditorchildNodeAdded(String name, NodeState after) Processes an added child node.@Nullable EditorchildNodeChanged(String name, NodeState before, NodeState after) Processes a changed child node.@Nullable EditorchildNodeDeleted(String name, NodeState before) Processes a deleted child node.Methods inherited from class org.apache.jackrabbit.oak.spi.commit.DefaultEditor
enter, leave, propertyAdded, propertyChanged, propertyDeleted
-
Constructor Details
-
SubtreeEditor
-
-
Method Details
-
childNodeAdded
Description copied from interface:EditorProcesses an added child node.- Specified by:
childNodeAddedin interfaceEditor- Overrides:
childNodeAddedin classDefaultEditor- Parameters:
name- name of the added nodeafter- the added child node- Returns:
- an editor for processing the subtree below the added node,
or
nullif the subtree does not need processing
-
childNodeChanged
Description copied from interface:EditorProcesses a changed child node. This method gets called for all child nodes that may contain changes between the before and after states.- Specified by:
childNodeChangedin interfaceEditor- Overrides:
childNodeChangedin classDefaultEditor- Parameters:
name- name of the changed nodebefore- child node before the changeafter- child node after the change- Returns:
- an editor for processing the subtree below the added node,
or
nullif the subtree does not need processing
-
childNodeDeleted
Description copied from interface:EditorProcesses a deleted child node.- Specified by:
childNodeDeletedin interfaceEditor- Overrides:
childNodeDeletedin classDefaultEditor- Parameters:
name- name of the deleted nodebefore- the deleted child node- Returns:
- an editor for processing the subtree below the removed node,
or
nullif the subtree does not need processing
-