Record Class EvidenceSummary

java.lang.Object
java.lang.Record
ch.so.agi.mcp.model.EvidenceSummary

public record EvidenceSummary(EvidenceSummary.Check compiler, EvidenceSummary.Check modelingRules, EvidenceSummary.Check constraintTests, EvidenceSummary.Check constraintInteractions, EvidenceSummary.Check businessAcceptance) extends Record
Describes observed checks, never authorizes a model or replaces the original results.
  • Constructor Details

    • EvidenceSummary

      public EvidenceSummary(EvidenceSummary.Check compiler, EvidenceSummary.Check modelingRules, EvidenceSummary.Check constraintTests, EvidenceSummary.Check constraintInteractions, EvidenceSummary.Check businessAcceptance)
      Creates an instance of a EvidenceSummary record class.
      Parameters:
      compiler - the value for the compiler record component
      modelingRules - the value for the modelingRules record component
      constraintTests - the value for the constraintTests record component
      constraintInteractions - the value for the constraintInteractions record component
      businessAcceptance - the value for the businessAcceptance record component
  • Method Details

    • check

      public static EvidenceSummary.Check check(EvidenceSummary.Status status, String scope, String basis, int count, int errors, int warnings, String... reasons)
    • notRun

      public static EvidenceSummary.Check notRun(String scope)
    • empty

      public static EvidenceSummary empty()
    • compiler

      public static EvidenceSummary.Check compiler(@Nullable Boolean valid, List<?> diagnostics)
    • review

      public static EvidenceSummary review(boolean compiled, List<?> diagnostics, List<?> findings, String profile)
    • changeReview

      public static EvidenceSummary changeReview(boolean beforeValid, List<?> beforeDiagnostics, boolean afterValid, List<?> afterDiagnostics, EvidenceSummary after)
    • withRuleCount

      public EvidenceSummary withRuleCount(int count)
    • withInteractions

      public EvidenceSummary withInteractions(EvidenceSummary.Check interactions)
    • authoring

      public static EvidenceSummary authoring(IliAuthoringResult result, String scope)
    • generated

      public static Map<String,Object> generated(Map<String,Object> response, boolean compilerValid, List<?> compilerDiagnostics)
    • explicit

      public static EvidenceSummary explicit(boolean compiled, Map<String,Object> response, List<?> compilerDiagnostics)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • compiler

      public EvidenceSummary.Check compiler()
      Returns the value of the compiler record component.
      Returns:
      the value of the compiler record component
    • modelingRules

      public EvidenceSummary.Check modelingRules()
      Returns the value of the modelingRules record component.
      Returns:
      the value of the modelingRules record component
    • constraintTests

      public EvidenceSummary.Check constraintTests()
      Returns the value of the constraintTests record component.
      Returns:
      the value of the constraintTests record component
    • constraintInteractions

      public EvidenceSummary.Check constraintInteractions()
      Returns the value of the constraintInteractions record component.
      Returns:
      the value of the constraintInteractions record component
    • businessAcceptance

      public EvidenceSummary.Check businessAcceptance()
      Returns the value of the businessAcceptance record component.
      Returns:
      the value of the businessAcceptance record component