public class ConflictValidator extends DefaultValidator
Validator
which checks the presence of conflict markers
in the tree in fails the commit if any are found.AnnotatingConflictHandler
INSTANCE
Constructor and Description |
---|
ConflictValidator(Tree parentAfter) |
Modifier and Type | Method and Description |
---|---|
Validator |
childNodeAdded(String name,
NodeState after)
Validate an added node
|
Validator |
childNodeChanged(String name,
NodeState before,
NodeState after)
Validate a changed node
|
Validator |
childNodeDeleted(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
|
enter, leave, propertyDeleted
public ConflictValidator(Tree parentAfter)
public void propertyAdded(PropertyState after) throws CommitFailedException
Validator
propertyAdded
in interface Editor
propertyAdded
in interface Validator
propertyAdded
in class DefaultValidator
after
- the added propertyCommitFailedException
- if validation fails.public void propertyChanged(PropertyState before, PropertyState after) throws CommitFailedException
Validator
propertyChanged
in interface Editor
propertyChanged
in interface Validator
propertyChanged
in class DefaultValidator
before
- the original propertyafter
- the changed propertyCommitFailedException
- if validation fails.public Validator childNodeAdded(String name, NodeState after)
Validator
childNodeAdded
in interface Editor
childNodeAdded
in interface Validator
childNodeAdded
in class DefaultValidator
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
.public Validator childNodeChanged(String name, NodeState before, NodeState after)
Validator
childNodeChanged
in interface Editor
childNodeChanged
in interface Validator
childNodeChanged
in class DefaultValidator
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
.public Validator childNodeDeleted(String name, NodeState before)
Validator
childNodeDeleted
in interface Editor
childNodeDeleted
in interface Validator
childNodeDeleted
in class DefaultValidator
name
- The name of the deleted node.before
- the original nodeValidator
for the removed subtree or
null
if validation should not decent into the subtree"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"