Class SubtreeValidator
java.lang.Object
org.apache.jackrabbit.oak.spi.commit.DefaultValidator
org.apache.jackrabbit.oak.spi.commit.SubtreeValidator
Validator that detects changes to a specified subtree and delegates the
validation of such changes to another given validator.
- Since:
- Oak 0.3
- See Also:
-
Field Summary
Fields inherited from class org.apache.jackrabbit.oak.spi.commit.DefaultValidator
INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchildNodeAdded(String name, NodeState after) Validate an added nodechildNodeChanged(String name, NodeState before, NodeState after) Validate a changed nodechildNodeDeleted(String name, NodeState before) Validate a deleted nodeMethods inherited from class org.apache.jackrabbit.oak.spi.commit.DefaultValidator
enter, leave, propertyAdded, propertyChanged, propertyDeleted
-
Constructor Details
-
SubtreeValidator
-
-
Method Details
-
childNodeAdded
Description copied from interface:ValidatorValidate an added node- Specified by:
childNodeAddedin interfaceEditor- Specified by:
childNodeAddedin interfaceValidator- Overrides:
childNodeAddedin classDefaultValidator- Parameters:
name- the name of the added nodeafter- the added node- Returns:
- a
Validatorforafterornullif validation should not decent into the subtree rooted atafter.
-
childNodeChanged
Description copied from interface:ValidatorValidate a changed node- Specified by:
childNodeChangedin interfaceEditor- Specified by:
childNodeChangedin interfaceValidator- Overrides:
childNodeChangedin classDefaultValidator- Parameters:
name- the name of the changed nodebefore- the original nodeafter- the changed node- Returns:
- a
Validatorforafterornullif validation should not decent into the subtree rooted atafter.
-
childNodeDeleted
Description copied from interface:ValidatorValidate a deleted node- Specified by:
childNodeDeletedin interfaceEditor- Specified by:
childNodeDeletedin interfaceValidator- Overrides:
childNodeDeletedin classDefaultValidator- Parameters:
name- The name of the deleted node.before- the original node- Returns:
- a
Validatorfor the removed subtree ornullif validation should not decent into the subtree
-