public class SubtreeValidator extends DefaultValidator
SubtreeExcludingValidatorINSTANCE| 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, propertyDeletedpublic SubtreeValidator(Validator validator, java.lang.String... path)
public Validator childNodeAdded(java.lang.String name, NodeState after)
ValidatorchildNodeAdded in interface EditorchildNodeAdded in interface ValidatorchildNodeAdded in class DefaultValidatorname - 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)
ValidatorchildNodeChanged in interface EditorchildNodeChanged in interface ValidatorchildNodeChanged in class DefaultValidatorname - 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)
ValidatorchildNodeDeleted in interface EditorchildNodeDeleted in interface ValidatorchildNodeDeleted in class DefaultValidatorname - 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 - 2023 Adobe. All Rights Reserved