
Record Class ValidationMessagePostProcessingInterceptor.Rule
java.lang.Object
java.lang.Record
ca.uhn.fhir.rest.server.interceptor.validation.ValidationMessagePostProcessingInterceptor.Rule
- Enclosing class:
ValidationMessagePostProcessingInterceptor
public static record ValidationMessagePostProcessingInterceptor.Rule(String messageId, Pattern messagePattern, Collection<ca.uhn.fhir.validation.ResultSeverityEnum> oldSeverities, Collection<String> diagnosticFragmentsToMatch, ca.uhn.fhir.validation.ResultSeverityEnum newSeverity)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRule
(String messageId, Pattern messagePattern, Collection<ca.uhn.fhir.validation.ResultSeverityEnum> oldSeverities, Collection<String> diagnosticFragmentsToMatch, ca.uhn.fhir.validation.ResultSeverityEnum newSeverity) Creates an instance of aRule
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediagnosticFragmentsToMatch
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themessageId
record component.Returns the value of themessagePattern
record component.ca.uhn.fhir.validation.ResultSeverityEnum
Returns the value of thenewSeverity
record component.of
(ValidationPostProcessingRuleJson theParamsDefinitionJson) Collection
<ca.uhn.fhir.validation.ResultSeverityEnum> Returns the value of theoldSeverities
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Rule
public Rule(String messageId, Pattern messagePattern, Collection<ca.uhn.fhir.validation.ResultSeverityEnum> oldSeverities, Collection<String> diagnosticFragmentsToMatch, ca.uhn.fhir.validation.ResultSeverityEnum newSeverity) Creates an instance of aRule
record class.- Parameters:
messageId
- the value for themessageId
record componentmessagePattern
- the value for themessagePattern
record componentoldSeverities
- the value for theoldSeverities
record componentdiagnosticFragmentsToMatch
- the value for thediagnosticFragmentsToMatch
record componentnewSeverity
- the value for thenewSeverity
record component
-
-
Method Details
-
of
public static ValidationMessagePostProcessingInterceptor.Rule of(ValidationPostProcessingRuleJson theParamsDefinitionJson) -
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
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)
. -
messageId
Returns the value of themessageId
record component.- Returns:
- the value of the
messageId
record component
-
messagePattern
Returns the value of themessagePattern
record component.- Returns:
- the value of the
messagePattern
record component
-
oldSeverities
Returns the value of theoldSeverities
record component.- Returns:
- the value of the
oldSeverities
record component
-
diagnosticFragmentsToMatch
Returns the value of thediagnosticFragmentsToMatch
record component.- Returns:
- the value of the
diagnosticFragmentsToMatch
record component
-
newSeverity
Returns the value of thenewSeverity
record component.- Returns:
- the value of the
newSeverity
record component
-