public interface Validator extends Editor
NodeState.| Modifier and Type | Method and Description |
|---|---|
@Nullable Validator |
childNodeAdded(java.lang.String name,
NodeState after)
Validate an added node
|
@Nullable Validator |
childNodeChanged(java.lang.String name,
NodeState before,
NodeState after)
Validate a changed node
|
@Nullable Validator |
childNodeDeleted(java.lang.String name,
NodeState before)
Validate a deleted node
|
void |
propertyAdded(PropertyState after)
Validate an added property
|
void |
propertyChanged(PropertyState before,
PropertyState after)
Validate a changed property
|
void |
propertyDeleted(PropertyState before)
Validate a deleted property
|
void propertyAdded(PropertyState after) throws CommitFailedException
propertyAdded in interface Editorafter - the added propertyCommitFailedException - if validation fails.void propertyChanged(PropertyState before, PropertyState after) throws CommitFailedException
propertyChanged in interface Editorbefore - the original propertyafter - the changed propertyCommitFailedException - if validation fails.void propertyDeleted(PropertyState before) throws CommitFailedException
propertyDeleted in interface Editorbefore - the original propertyCommitFailedException - if validation fails.@Nullable @Nullable Validator childNodeAdded(java.lang.String name, NodeState after) throws CommitFailedException
childNodeAdded in interface Editorname - the name of the added nodeafter - the added nodeValidator for after or null if validation
should not decent into the subtree rooted at after.CommitFailedException - if validation fails.@Nullable @Nullable Validator childNodeChanged(java.lang.String name, NodeState before, NodeState after) throws CommitFailedException
childNodeChanged in interface Editorname - 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.CommitFailedException - if validation fails.@Nullable @Nullable Validator childNodeDeleted(java.lang.String name, NodeState before) throws CommitFailedException
childNodeDeleted in interface Editorname - The name of the deleted node.before - the original nodeValidator for the removed subtree or
null if validation should not decent into the subtreeCommitFailedException - if validation fails.Copyright © 2010 - 2023 Adobe. All Rights Reserved