Class ValidationResult

java.lang.Object
de.redsix.dmncheck.result.ValidationResult

public class ValidationResult extends Object
A validation result consists of the following:

1) A message that describes the validation result 2) A severity indicating how severe the result is 3) A reference to the DMN element that caused result

In this context a validation result always describes an error or a warning. There is currently no way to express positive validation results, except returning no validation results at all.

  • Field Details

  • Method Details

    • withDocumentation

      public ValidationResult withDocumentation(String documentation)
      Returns a copy of this validation result that links to the given documentation.
      Parameters:
      documentation - URL of a detailed description of the result and possible solutions
      Returns:
      validation result with documentation
    • getSeverity

      public Severity getSeverity()
    • getMessage

      public String getMessage()
    • getElement

      public org.operaton.bpm.model.xml.instance.ModelElementInstance getElement()
    • getDocumentation

      public Optional<String> getDocumentation()
    • toString

      public String toString()
      Overrides:
      toString in class Object