Class IdAndNameValidator<T extends org.camunda.bpm.model.dmn.instance.DmnElement & org.camunda.bpm.model.dmn.instance.NamedElement>

All Implemented Interfaces:
Validator
Direct Known Subclasses:
DecisionIdAndNameValidator, DefinitionsIdAndNameValidator, InputDataIdAndNameValidator, ItemDefinitionIdAndNameValidator, KnowledgeSourceIdAndNameValidator

public abstract class IdAndNameValidator<T extends org.camunda.bpm.model.dmn.instance.DmnElement & org.camunda.bpm.model.dmn.instance.NamedElement> extends SimpleValidator<T>
  • Constructor Details

    • IdAndNameValidator

      public IdAndNameValidator()
  • Method Details

    • getName

      protected abstract String getName()
    • isApplicable

      public boolean isApplicable(T element, 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 class GenericValidator<T extends org.camunda.bpm.model.dmn.instance.DmnElement & org.camunda.bpm.model.dmn.instance.NamedElement,T extends org.camunda.bpm.model.dmn.instance.DmnElement & org.camunda.bpm.model.dmn.instance.NamedElement>
      Parameters:
      element - Element used to check applicability of the validation
      validationContext - Validation Context
      Returns:
      Whether the validation is applicable
    • validate

      public List<ValidationResult> validate(T element, 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 class GenericValidator<T extends org.camunda.bpm.model.dmn.instance.DmnElement & org.camunda.bpm.model.dmn.instance.NamedElement,T extends org.camunda.bpm.model.dmn.instance.DmnElement & org.camunda.bpm.model.dmn.instance.NamedElement>
      Parameters:
      element - Element under validation
      validationContext - Validation Context
      Returns:
      A list of validation results