Class TestScript.Variable

java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.api.BaseIdentifiableElement
ca.uhn.fhir.model.dstu2.resource.TestScript.Variable
All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement, ca.uhn.fhir.model.api.IElement, ca.uhn.fhir.model.api.IIdentifiableElement, ca.uhn.fhir.model.api.IResourceBlock, ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions, Serializable, org.hl7.fhir.instance.model.api.IBase
Enclosing class:
TestScript

public static class TestScript.Variable extends ca.uhn.fhir.model.api.BaseIdentifiableElement implements ca.uhn.fhir.model.api.IResourceBlock
Block class for child element: TestScript.variable ()

Definition: Variable is set based either on element value in response body or on header field value in the response headers.

See Also:
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
    • getAllPopulatedChildElementsOfType

      public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
      Specified by:
      getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElement
    • getNameElement

      public ca.uhn.fhir.model.primitive.StringDt getNameElement()
      Gets the value(s) for name (). creating it if it does not exist. Will not return null.

      Definition: Descriptive name for this variable

    • getName

      public String getName()
      Gets the value(s) for name (). creating it if it does not exist. This method may return null.

      Definition: Descriptive name for this variable

    • setName

      public TestScript.Variable setName(ca.uhn.fhir.model.primitive.StringDt theValue)
      Sets the value(s) for name ()

      Definition: Descriptive name for this variable

    • setName

      public TestScript.Variable setName(String theString)
      Sets the value for name ()

      Definition: Descriptive name for this variable

    • getHeaderFieldElement

      public ca.uhn.fhir.model.primitive.StringDt getHeaderFieldElement()
      Gets the value(s) for headerField (). creating it if it does not exist. Will not return null.

      Definition: Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.

    • getHeaderField

      Gets the value(s) for headerField (). creating it if it does not exist. This method may return null.

      Definition: Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.

    • setHeaderField

      public TestScript.Variable setHeaderField(ca.uhn.fhir.model.primitive.StringDt theValue)
      Sets the value(s) for headerField ()

      Definition: Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.

    • setHeaderField

      Sets the value for headerField ()

      Definition: Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.

    • getPathElement

      public ca.uhn.fhir.model.primitive.StringDt getPathElement()
      Gets the value(s) for path (). creating it if it does not exist. Will not return null.

      Definition: XPath or JSONPath against the fixture body. When variables are defined, either headerField must be specified or path, but not both.

    • getPath

      public String getPath()
      Gets the value(s) for path (). creating it if it does not exist. This method may return null.

      Definition: XPath or JSONPath against the fixture body. When variables are defined, either headerField must be specified or path, but not both.

    • setPath

      public TestScript.Variable setPath(ca.uhn.fhir.model.primitive.StringDt theValue)
      Sets the value(s) for path ()

      Definition: XPath or JSONPath against the fixture body. When variables are defined, either headerField must be specified or path, but not both.

    • setPath

      public TestScript.Variable setPath(String theString)
      Sets the value for path ()

      Definition: XPath or JSONPath against the fixture body. When variables are defined, either headerField must be specified or path, but not both.

    • getSourceIdElement

      public ca.uhn.fhir.model.primitive.IdDt getSourceIdElement()
      Gets the value(s) for sourceId (). creating it if it does not exist. Will not return null.

      Definition: Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.

    • getSourceId

      public String getSourceId()
      Gets the value(s) for sourceId (). creating it if it does not exist. This method may return null.

      Definition: Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.

    • setSourceId

      public TestScript.Variable setSourceId(ca.uhn.fhir.model.primitive.IdDt theValue)
      Sets the value(s) for sourceId ()

      Definition: Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.

    • setSourceId

      Sets the value for sourceId ()

      Definition: Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.