public class ConflictValidator extends DefaultValidator
Validator which checks the presence of conflict markers
in the tree in fails the commit if any are found.AnnotatingConflictHandlerINSTANCE| Constructor and Description |
|---|
ConflictValidator(Tree parentAfter)
Deprecated.
|
| 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 |
enter(NodeState before,
NodeState after)
Called before the given before and after states are compared.
|
void |
leave(NodeState before,
NodeState after)
Called after the given before and after states are compared.
|
void |
propertyAdded(PropertyState after)
Validate an added property
|
void |
propertyChanged(PropertyState before,
PropertyState after)
Validate a changed property
|
propertyDeleted@Deprecated public ConflictValidator(Tree parentAfter)
public void enter(NodeState before, NodeState after) throws CommitFailedException
Editorenter in interface Editorenter in class DefaultValidatorbefore - before state, non-existent if this node was addedafter - after state, non-existent if this node was removedCommitFailedException - if this commit should be rejectedpublic void leave(NodeState before, NodeState after) throws CommitFailedException
Editorleave in interface Editorleave in class DefaultValidatorbefore - before state, non-existent if this node was addedafter - after state, non-existent if this node was removedCommitFailedException - if this commit should be rejectedpublic void propertyAdded(PropertyState after) throws CommitFailedException
ValidatorpropertyAdded in interface EditorpropertyAdded in interface ValidatorpropertyAdded in class DefaultValidatorafter - the added propertyCommitFailedException - if validation fails.public void propertyChanged(PropertyState before, PropertyState after) throws CommitFailedException
ValidatorpropertyChanged in interface EditorpropertyChanged in interface ValidatorpropertyChanged in class DefaultValidatorbefore - the original propertyafter - the changed propertyCommitFailedException - if validation fails.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