Package de.redsix.dmncheck.validators
Class NoDecisionPresentValidator
java.lang.Object
de.redsix.dmncheck.validators.core.GenericValidator<T,T>
de.redsix.dmncheck.validators.core.SimpleValidator<org.camunda.bpm.model.dmn.instance.Definitions>
de.redsix.dmncheck.validators.NoDecisionPresentValidator
- All Implemented Interfaces:
Validator
public class NoDecisionPresentValidator
extends SimpleValidator<org.camunda.bpm.model.dmn.instance.Definitions>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<org.camunda.bpm.model.dmn.instance.Definitions>
Auxiliary method to determine the class for the validation.boolean
isApplicable
(org.camunda.bpm.model.dmn.instance.Definitions definitions, 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.Definitions definitions, ValidationContext validationContext) Validates a given element of type T.Methods inherited from class de.redsix.dmncheck.validators.core.SimpleValidator
getClassUsedToCheckApplicability
Methods inherited from class de.redsix.dmncheck.validators.core.GenericValidator
apply
-
Constructor Details
-
NoDecisionPresentValidator
public NoDecisionPresentValidator()
-
-
Method Details
-
isApplicable
public boolean isApplicable(org.camunda.bpm.model.dmn.instance.Definitions definitions, ValidationContext validationContext) Description copied from class:GenericValidator
Checks whether the validation is applicable for an element of type S taking account of the validation context.- Specified by:
isApplicable
in classGenericValidator<org.camunda.bpm.model.dmn.instance.Definitions,
org.camunda.bpm.model.dmn.instance.Definitions> - Parameters:
definitions
- 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.Definitions definitions, ValidationContext validationContext) Description copied from class:GenericValidator
Validates a given element of type T.A validation context can be used to track global assumptions about the DMN model instance.
- Specified by:
validate
in classGenericValidator<org.camunda.bpm.model.dmn.instance.Definitions,
org.camunda.bpm.model.dmn.instance.Definitions> - Parameters:
definitions
- Element under validationvalidationContext
- Validation Context- Returns:
- A list of validation results
-
getClassUnderValidation
Description copied from class:GenericValidator
Auxiliary method to determine the class for the validation.- Specified by:
getClassUnderValidation
in classGenericValidator<org.camunda.bpm.model.dmn.instance.Definitions,
org.camunda.bpm.model.dmn.instance.Definitions> - Returns:
- Class used for validation
-