Package ch.so.agi.mcp.model
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionEvidenceSummary(EvidenceSummary.Check compiler, EvidenceSummary.Check modelingRules, EvidenceSummary.Check constraintTests, EvidenceSummary.Check constraintInteractions, EvidenceSummary.Check businessAcceptance) Creates an instance of aEvidenceSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic EvidenceSummaryauthoring(IliAuthoringResult result, String scope) Returns the value of thebusinessAcceptancerecord component.static EvidenceSummarychangeReview(boolean beforeValid, List<?> beforeDiagnostics, boolean afterValid, List<?> afterDiagnostics, EvidenceSummary after) static EvidenceSummary.Checkcheck(EvidenceSummary.Status status, String scope, String basis, int count, int errors, int warnings, String... reasons) compiler()Returns the value of thecompilerrecord component.static EvidenceSummary.CheckReturns the value of theconstraintInteractionsrecord component.Returns the value of theconstraintTestsrecord component.static EvidenceSummaryempty()final booleanIndicates whether some other object is "equal to" this one.static EvidenceSummaryfinal inthashCode()Returns a hash code value for this object.Returns the value of themodelingRulesrecord component.static EvidenceSummary.Checkstatic EvidenceSummaryfinal StringtoString()Returns a string representation of this record class.withInteractions(EvidenceSummary.Check interactions) withRuleCount(int count)
-
Constructor Details
-
EvidenceSummary
public EvidenceSummary(EvidenceSummary.Check compiler, EvidenceSummary.Check modelingRules, EvidenceSummary.Check constraintTests, EvidenceSummary.Check constraintInteractions, EvidenceSummary.Check businessAcceptance) Creates an instance of aEvidenceSummaryrecord class.- Parameters:
compiler- the value for thecompilerrecord componentmodelingRules- the value for themodelingRulesrecord componentconstraintTests- the value for theconstraintTestsrecord componentconstraintInteractions- the value for theconstraintInteractionsrecord componentbusinessAcceptance- the value for thebusinessAcceptancerecord 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
-
empty
-
compiler
-
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
-
withInteractions
-
authoring
-
generated
-
explicit
public static EvidenceSummary explicit(boolean compiled, Map<String, Object> response, List<?> compilerDiagnostics) -
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
compiler
Returns the value of thecompilerrecord component.- Returns:
- the value of the
compilerrecord component
-
modelingRules
Returns the value of themodelingRulesrecord component.- Returns:
- the value of the
modelingRulesrecord component
-
constraintTests
Returns the value of theconstraintTestsrecord component.- Returns:
- the value of the
constraintTestsrecord component
-
constraintInteractions
Returns the value of theconstraintInteractionsrecord component.- Returns:
- the value of the
constraintInteractionsrecord component
-
businessAcceptance
Returns the value of thebusinessAcceptancerecord component.- Returns:
- the value of the
businessAcceptancerecord component
-