Package de.redsix.dmncheck.validators
Class DuplicateColumnLabelValidator
java.lang.Object
de.redsix.dmncheck.validators.core.GenericValidator<org.camunda.bpm.model.dmn.instance.DecisionTable,org.camunda.bpm.model.dmn.instance.DecisionTable>
de.redsix.dmncheck.validators.core.SimpleValidator<org.camunda.bpm.model.dmn.instance.DecisionTable>
de.redsix.dmncheck.validators.DuplicateColumnLabelValidator
- All Implemented Interfaces:
Validator
public class DuplicateColumnLabelValidator
extends SimpleValidator<org.camunda.bpm.model.dmn.instance.DecisionTable>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<org.camunda.bpm.model.dmn.instance.DecisionTable> Auxiliary method to determine the class for the validation.booleanisApplicable(org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable, ValidationContext validationContext) Checks whether the validation is applicable for an element of type S taking account of the validation context.validate(org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable, ValidationContext validationContext) Validates a given element of type T.Methods inherited from class de.redsix.dmncheck.validators.core.SimpleValidator
getClassUsedToCheckApplicabilityMethods inherited from class de.redsix.dmncheck.validators.core.GenericValidator
apply
-
Constructor Details
-
DuplicateColumnLabelValidator
public DuplicateColumnLabelValidator()
-
-
Method Details
-
isApplicable
public boolean isApplicable(org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable, ValidationContext validationContext) Description copied from class:GenericValidatorChecks whether the validation is applicable for an element of type S taking account of the validation context.- Specified by:
isApplicablein classGenericValidator<org.camunda.bpm.model.dmn.instance.DecisionTable,org.camunda.bpm.model.dmn.instance.DecisionTable> - Parameters:
decisionTable- Element used to check applicability of the validationvalidationContext- Validation Context- Returns:
- Whether the validation is applicable
-
validate
public List<ValidationResult> validate(org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable, ValidationContext validationContext) Description copied from class:GenericValidatorValidates a given element of type T.A validation context can be used to track global assumptions about the DMN model instance.
- Specified by:
validatein classGenericValidator<org.camunda.bpm.model.dmn.instance.DecisionTable,org.camunda.bpm.model.dmn.instance.DecisionTable> - Parameters:
decisionTable- Element under validationvalidationContext- Validation Context- Returns:
- A list of validation results
-
getClassUnderValidation
Description copied from class:GenericValidatorAuxiliary method to determine the class for the validation.- Specified by:
getClassUnderValidationin classGenericValidator<org.camunda.bpm.model.dmn.instance.DecisionTable,org.camunda.bpm.model.dmn.instance.DecisionTable> - Returns:
- Class used for validation
-