public interface MoveValidator extends Validator
MoveDetector| Modifier and Type | Method and Description |
|---|---|
@Nullable MoveValidator |
childNodeAdded(java.lang.String name,
NodeState after)
Validate an added node
|
@Nullable MoveValidator |
childNodeChanged(java.lang.String name,
NodeState before,
NodeState after)
Validate a changed node
|
@Nullable MoveValidator |
childNodeDeleted(java.lang.String name,
NodeState before)
Validate a deleted node
|
void |
move(java.lang.String name,
java.lang.String sourcePath,
NodeState moved)
Called when a moved node has been detected.
|
propertyAdded, propertyChanged, propertyDeletedvoid move(java.lang.String name,
java.lang.String sourcePath,
NodeState moved)
throws CommitFailedException
sourcePath - path of the node before the movename - name of the node after the movemoved - the node state moved hereCommitFailedException - if validation fails.
remove@Nullable @Nullable MoveValidator childNodeAdded(java.lang.String name, NodeState after) throws CommitFailedException
ValidatorchildNodeAdded in interface EditorchildNodeAdded in interface Validatorname - 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 MoveValidator childNodeChanged(java.lang.String name, NodeState before, NodeState after) throws CommitFailedException
ValidatorchildNodeChanged in interface EditorchildNodeChanged in interface Validatorname - 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 MoveValidator childNodeDeleted(java.lang.String name, NodeState before) throws CommitFailedException
ValidatorchildNodeDeleted in interface EditorchildNodeDeleted in interface Validatorname - 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