public class SubtreeValidator extends DefaultValidator
SubtreeExcludingValidator
INSTANCE
Constructor and Description |
---|
SubtreeValidator(Validator validator,
java.lang.String... path) |
Modifier and Type | Method and Description |
---|---|
Validator |
childNodeAdded(java.lang.String name,
NodeState after)
Validate an added node
|
Validator |
childNodeChanged(java.lang.String name,
NodeState before,
NodeState after)
Validate a changed node
|
Validator |
childNodeDeleted(java.lang.String name,
NodeState before)
Validate a deleted node
|
enter, leave, propertyAdded, propertyChanged, propertyDeleted
public SubtreeValidator(Validator validator, java.lang.String... path)
public Validator childNodeAdded(java.lang.String name, NodeState after)
Validator
childNodeAdded
in interface Editor
childNodeAdded
in interface Validator
childNodeAdded
in class DefaultValidator
name
- the name of the added nodeafter
- the added nodeValidator
for after
or null
if validation
should not decent into the subtree rooted at after
.public Validator childNodeChanged(java.lang.String name, NodeState before, NodeState after)
Validator
childNodeChanged
in interface Editor
childNodeChanged
in interface Validator
childNodeChanged
in class DefaultValidator
name
- the name of the changed nodebefore
- the original nodeafter
- the changed nodeValidator
for after
or null
if validation
should not decent into the subtree rooted at after
.public Validator childNodeDeleted(java.lang.String name, NodeState before)
Validator
childNodeDeleted
in interface Editor
childNodeDeleted
in interface Validator
childNodeDeleted
in class DefaultValidator
name
- The name of the deleted node.before
- the original nodeValidator
for the removed subtree or
null
if validation should not decent into the subtreeCopyright © 2010 - 2020 Adobe. All Rights Reserved