public class SameBehaviorInstructionValidator extends Object implements MigrationInstructionValidator
Modifier and Type | Field and Description |
---|---|
static List<Set<Class<?>>> |
EQUIVALENT_BEHAVIORS |
protected Map<Class<?>,Set<Class<?>>> |
equivalentBehaviors |
Constructor and Description |
---|
SameBehaviorInstructionValidator() |
SameBehaviorInstructionValidator(List<Set<Class<?>>> equivalentBehaviors) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
sameBehavior(Class<?> sourceBehavior,
Class<?> targetBehavior) |
void |
validate(ValidatingMigrationInstruction instruction,
ValidatingMigrationInstructions instructions,
MigrationInstructionValidationReportImpl report)
Check that a migration instruction is valid for a migration plan.
|
public void validate(ValidatingMigrationInstruction instruction, ValidatingMigrationInstructions instructions, MigrationInstructionValidationReportImpl report)
MigrationInstructionValidator
validate
in interface MigrationInstructionValidator
instruction
- the instruction to validateinstructions
- the complete migration plan to validatereport
- the validation reportCopyright © 2017. All rights reserved.