
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 aRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediagnosticFragmentsToMatchrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageIdrecord component.Returns the value of themessagePatternrecord component.ca.uhn.fhir.validation.ResultSeverityEnumReturns the value of thenewSeverityrecord component.of(ValidationPostProcessingRuleJson theParamsDefinitionJson) Collection<ca.uhn.fhir.validation.ResultSeverityEnum> Returns the value of theoldSeveritiesrecord component.final StringtoString()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 aRulerecord class.- Parameters:
messageId- the value for themessageIdrecord componentmessagePattern- the value for themessagePatternrecord componentoldSeverities- the value for theoldSeveritiesrecord componentdiagnosticFragmentsToMatch- the value for thediagnosticFragmentsToMatchrecord componentnewSeverity- the value for thenewSeverityrecord 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 themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
messagePattern
Returns the value of themessagePatternrecord component.- Returns:
- the value of the
messagePatternrecord component
-
oldSeverities
Returns the value of theoldSeveritiesrecord component.- Returns:
- the value of the
oldSeveritiesrecord component
-
diagnosticFragmentsToMatch
Returns the value of thediagnosticFragmentsToMatchrecord component.- Returns:
- the value of the
diagnosticFragmentsToMatchrecord component
-
newSeverity
Returns the value of thenewSeverityrecord component.- Returns:
- the value of the
newSeverityrecord component
-