Record Class TestScriptDisplay.StepDisplay

java.lang.Object
java.lang.Record
org.fhirfrog.frog.testscriptrender.TestScriptDisplay.StepDisplay
Record Components:
kind - operation or assert
narrative - a plain-English, human-readable description of what this step does or checks
technicalDetail - the underlying wire-level detail (HTTP verb + path, or the raw FHIRPath/assert field), or null
severity - for asserts, whether a failure is gating; TestScriptDisplay.Severity.NONE for 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 Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • kind

      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • narrative

      public String narrative()
      Returns the value of the narrative record component.
      Returns:
      the value of the narrative record component
    • technicalDetail

      public String technicalDetail()
      Returns the value of the technicalDetail record component.
      Returns:
      the value of the technicalDetail record component
    • severity

      public TestScriptDisplay.Severity severity()
      Returns the value of the severity record component.
      Returns:
      the value of the severity record component