Interface Validator

All Known Implementing Classes:
AggregationOutputTypeValidator, AggregationValidator, AllowedValuesValidator, ConflictingRuleValidator, ConnectedRequirementGraphValidator, DecisionIdAndNameValidator, DecisionTableValidator, DefinitionsIdAndNameValidator, DuplicateColumnLabelValidator, DuplicateRuleValidator, ElementTypeDeclarationValidator, GenericValidator, IdAndNameValidator, InputDataIdAndNameValidator, InputEntryTypeValidator, InputTypeDeclarationValidator, InputValuesTypeValidator, ItemDefinitionAllowedValuesTypeValidator, ItemDefinitionIdAndNameValidator, KnowledgeSourceIdAndNameValidator, LiteralExpressionValidator, MergeableRulesValidator, NoDecisionPresentValidator, OutputEntryTypeValidator, OutputTypeDeclarationValidator, OutputValuesTypeValidator, OverlappingRuleValidator, RequirementGraphLeafValidator, RequirementGraphValidator, ShadowedRuleValidator, SimpleValidator, TypeValidator

public interface Validator
Generic interface for the validation of DMN model instances.

Every validation for dmn-check has to implement this interface.

  • Method Summary

    Modifier and Type
    Method
    Description
    apply(org.operaton.bpm.model.dmn.DmnModelInstance dmnModelInstance)
    Validates the given DMN model instance and returns the validation results as a list.
    applyWithDocumentation(org.operaton.bpm.model.dmn.DmnModelInstance dmnModelInstance)
    Validates the given DMN model instance and attaches the documentation of this validator to the results.
    default Optional<String>
    Link to a detailed description of the problems reported by this validator and how to solve them.
  • Method Details

    • apply

      List<ValidationResult> apply(org.operaton.bpm.model.dmn.DmnModelInstance dmnModelInstance)
      Validates the given DMN model instance and returns the validation results as a list.
      Parameters:
      dmnModelInstance - DMN model instance used for validation
      Returns:
      A possibly empty list of validation results
    • documentation

      default Optional<String> documentation()
      Link to a detailed description of the problems reported by this validator and how to solve them.
      Returns:
      URL of the documentation, if available
    • applyWithDocumentation

      default List<ValidationResult> applyWithDocumentation(org.operaton.bpm.model.dmn.DmnModelInstance dmnModelInstance)
      Validates the given DMN model instance and attaches the documentation of this validator to the results.
      Parameters:
      dmnModelInstance - DMN model instance used for validation
      Returns:
      A possibly empty list of validation results