Record Class TestScriptDisplay.StepDisplay
java.lang.Object
java.lang.Record
org.fhirfrog.frog.testscriptrender.TestScriptDisplay.StepDisplay
- Record Components:
kind- operation or assertnarrative- a plain-English, human-readable description of what this step does or checkstechnicalDetail- the underlying wire-level detail (HTTP verb + path, or the raw FHIRPath/assert field), ornullseverity- for asserts, whether a failure is gating;TestScriptDisplay.Severity.NONEfor operations
- Enclosing class:
- TestScriptDisplay
public static record TestScriptDisplay.StepDisplay(TestScriptDisplay.StepKind kind, String narrative, String technicalDetail, TestScriptDisplay.Severity severity)
extends Record
A single step within a phase: one
operation or one assert.-
Constructor Summary
ConstructorsConstructorDescriptionStepDisplay(TestScriptDisplay.StepKind kind, String narrative, String technicalDetail, TestScriptDisplay.Severity severity) Creates an instance of aStepDisplayrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thenarrativerecord component.severity()Returns the value of theseverityrecord component.Returns the value of thetechnicalDetailrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StepDisplay
public StepDisplay(TestScriptDisplay.StepKind kind, String narrative, String technicalDetail, TestScriptDisplay.Severity severity) Creates an instance of aStepDisplayrecord class.- Parameters:
kind- the value for thekindrecord componentnarrative- the value for thenarrativerecord componenttechnicalDetail- the value for thetechnicalDetailrecord componentseverity- the value for theseverityrecord 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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
narrative
Returns the value of thenarrativerecord component.- Returns:
- the value of the
narrativerecord component
-
technicalDetail
Returns the value of thetechnicalDetailrecord component.- Returns:
- the value of the
technicalDetailrecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-