Class RequirementGraphValidator

java.lang.Object
de.redsix.dmncheck.validators.core.RequirementGraphValidator
All Implemented Interfaces:
Validator
Direct Known Subclasses:
ConnectedRequirementGraphValidator, RequirementGraphLeafValidator

public abstract class RequirementGraphValidator extends Object implements Validator
Generic validator that facilitates writing validations on graph-based representation of the DMN model instance.
  • Constructor Details

    • RequirementGraphValidator

      public RequirementGraphValidator()
  • Method Details

    • validate

      protected abstract List<ValidationResult> validate(RequirementGraph drg)
      Returns a list of validation results for a requirement graph (see RequirementGraph).
      Parameters:
      drg - Requirement graph used for validation
      Returns:
      A possibly empty list of validation results
    • apply

      public List<ValidationResult> apply(org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance)
      Description copied from interface: Validator
      Validates the given DMN model instance and returns the validation results as a list.
      Specified by:
      apply in interface Validator
      Parameters:
      dmnModelInstance - DMN model instance used for validation
      Returns:
      A possibly empty list of validation results