Package ch.so.agi.mcp.constraint
Record Class ConstraintExplanation
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintExplanation
public record ConstraintExplanation(ConstraintExplanation.Status status, String constraintFqn, String contextFqn, String kind, String description, List<String> referencedElements, List<String> notes, List<String> limitations)
extends Record
A description of compiler semantics, never a claim of business acceptance.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraintFqnrecord component.Returns the value of thecontextFqnrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.static ConstraintExplanationfromReview(Map<String, Object> review) final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thelimitationsrecord component.notes()Returns the value of thenotesrecord component.Returns the value of thereferencedElementsrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.static ConstraintExplanationunavailable(String fqn)
-
Constructor Details
-
ConstraintExplanation
public ConstraintExplanation(ConstraintExplanation.Status status, String constraintFqn, String contextFqn, String kind, String description, List<String> referencedElements, List<String> notes, List<String> limitations) Creates an instance of aConstraintExplanationrecord class.- Parameters:
status- the value for thestatusrecord componentconstraintFqn- the value for theconstraintFqnrecord componentcontextFqn- the value for thecontextFqnrecord componentkind- the value for thekindrecord componentdescription- the value for thedescriptionrecord componentreferencedElements- the value for thereferencedElementsrecord componentnotes- the value for thenotesrecord componentlimitations- the value for thelimitationsrecord component
-
-
Method Details
-
fromReview
-
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). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
constraintFqn
Returns the value of theconstraintFqnrecord component.- Returns:
- the value of the
constraintFqnrecord component
-
contextFqn
Returns the value of thecontextFqnrecord component.- Returns:
- the value of the
contextFqnrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
referencedElements
Returns the value of thereferencedElementsrecord component.- Returns:
- the value of the
referencedElementsrecord component
-
notes
Returns the value of thenotesrecord component.- Returns:
- the value of the
notesrecord component
-
limitations
Returns the value of thelimitationsrecord component.- Returns:
- the value of the
limitationsrecord component