Package ch.so.agi.mcp.knowledge
Record Class ModelingRule
java.lang.Object
java.lang.Record
ch.so.agi.mcp.knowledge.ModelingRule
public record ModelingRule(ModelingRuleProfile profile, String id, String title, ModelingRule.Severity severity, ModelPurpose appliesTo, ModelingRule.CheckKind checkKind, String sourceUrl, String sourceSection, String rationale, String recommendation)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionModelingRule(ModelingRuleProfile profile, String id, String title, ModelingRule.Severity severity, ModelPurpose appliesTo, ModelingRule.CheckKind checkKind, String sourceUrl, String sourceSection, String rationale, String recommendation) Creates an instance of aModelingRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappliesTorecord component.Returns the value of thecheckKindrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.profile()Returns the value of theprofilerecord component.Returns the value of therationalerecord component.Returns the value of therecommendationrecord component.severity()Returns the value of theseverityrecord component.Returns the value of thesourceSectionrecord component.Returns the value of thesourceUrlrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelingRule
public ModelingRule(ModelingRuleProfile profile, String id, String title, ModelingRule.Severity severity, ModelPurpose appliesTo, ModelingRule.CheckKind checkKind, String sourceUrl, String sourceSection, String rationale, String recommendation) Creates an instance of aModelingRulerecord class.- Parameters:
profile- the value for theprofilerecord componentid- the value for theidrecord componenttitle- the value for thetitlerecord componentseverity- the value for theseverityrecord componentappliesTo- the value for theappliesTorecord componentcheckKind- the value for thecheckKindrecord componentsourceUrl- the value for thesourceUrlrecord componentsourceSection- the value for thesourceSectionrecord componentrationale- the value for therationalerecord componentrecommendation- the value for therecommendationrecord component
-
-
Method Details
-
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). -
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
appliesTo
Returns the value of theappliesTorecord component.- Returns:
- the value of the
appliesTorecord component
-
checkKind
Returns the value of thecheckKindrecord component.- Returns:
- the value of the
checkKindrecord component
-
sourceUrl
Returns the value of thesourceUrlrecord component.- Returns:
- the value of the
sourceUrlrecord component
-
sourceSection
Returns the value of thesourceSectionrecord component.- Returns:
- the value of the
sourceSectionrecord component
-
rationale
Returns the value of therationalerecord component.- Returns:
- the value of the
rationalerecord component
-
recommendation
Returns the value of therecommendationrecord component.- Returns:
- the value of the
recommendationrecord component
-