public interface Validator extends Editor
NodeState
.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
|
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 Editor
after
- the added propertyCommitFailedException
- if validation fails.void propertyChanged(PropertyState before, PropertyState after) throws CommitFailedException
propertyChanged
in interface Editor
before
- the original propertyafter
- the changed propertyCommitFailedException
- if validation fails.void propertyDeleted(PropertyState before) throws CommitFailedException
propertyDeleted
in interface Editor
before
- the original propertyCommitFailedException
- if validation fails.Validator childNodeAdded(java.lang.String name, NodeState after) throws CommitFailedException
childNodeAdded
in interface Editor
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
.CommitFailedException
- if validation fails.Validator childNodeChanged(java.lang.String name, NodeState before, NodeState after) throws CommitFailedException
childNodeChanged
in interface Editor
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
.CommitFailedException
- if validation fails.Validator childNodeDeleted(java.lang.String name, NodeState before) throws CommitFailedException
childNodeDeleted
in interface Editor
name
- 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 - 2020 Adobe Systems Incorporated. All Rights Reserved"