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

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 Details

    • IdAndNameValidator

      public IdAndNameValidator()
  • Method Details

    • documentation

      public Optional<String> documentation()
      Description copied from interface: Validator
      Link to a detailed description of the problems reported by this validator and how to solve them.
      Returns:
      URL of the documentation, if available
    • 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.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 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.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 validation
      validationContext - Validation Context
      Returns:
      A list of validation results