Class IdAndNameValidator<T extends org.operaton.bpm.model.dmn.instance.DmnElement & org.operaton.bpm.model.dmn.instance.NamedElement>
java.lang.Object
de.redsix.dmncheck.validators.core.GenericValidator<T,T>
de.redsix.dmncheck.validators.core.SimpleValidator<T>
de.redsix.dmncheck.validators.IdAndNameValidator<T>
- All Implemented Interfaces:
Validator
- Direct Known Subclasses:
DecisionIdAndNameValidator, DefinitionsIdAndNameValidator, InputDataIdAndNameValidator, ItemDefinitionIdAndNameValidator, KnowledgeSourceIdAndNameValidator
public abstract class IdAndNameValidator<T extends org.operaton.bpm.model.dmn.instance.DmnElement & org.operaton.bpm.model.dmn.instance.NamedElement>
extends SimpleValidator<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLink to a detailed description of the problems reported by this validator and how to solve them.protected abstract StringgetName()booleanisApplicable(T element, ValidationContext validationContext) Checks whether the validation is applicable for an element of type S taking account of the validation context.validate(T element, ValidationContext validationContext) Validates a given element of type T.Methods inherited from class SimpleValidator
getClassUsedToCheckApplicabilityMethods inherited from class GenericValidator
apply, getClassUnderValidationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Validator
applyWithDocumentation
-
Constructor Details
-
IdAndNameValidator
public IdAndNameValidator()
-
-
Method Details
-
documentation
-
getName
-
isApplicable
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<T extends org.operaton.bpm.model.dmn.instance.DmnElement & org.operaton.bpm.model.dmn.instance.NamedElement, T extends org.operaton.bpm.model.dmn.instance.DmnElement & org.operaton.bpm.model.dmn.instance.NamedElement>- Parameters:
element- Element used to check applicability of the validationvalidationContext- Validation Context- Returns:
- Whether the validation is applicable
-
validate
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<T extends org.operaton.bpm.model.dmn.instance.DmnElement & org.operaton.bpm.model.dmn.instance.NamedElement, T extends org.operaton.bpm.model.dmn.instance.DmnElement & org.operaton.bpm.model.dmn.instance.NamedElement>- Parameters:
element- Element under validationvalidationContext- Validation Context- Returns:
- A list of validation results
-