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:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    Variable()  
  • Method Summary

    Modifier and Type Method Description
    <T extends ca.uhn.fhir.model.api.IElement>
    List<T>
    getAllPopulatedChildElementsOfType​(Class<T> theType)  
    String getHeaderField()
    Gets the value(s) for headerField ().
    ca.uhn.fhir.model.primitive.StringDt getHeaderFieldElement()
    Gets the value(s) for headerField ().
    String getName()
    Gets the value(s) for name ().
    ca.uhn.fhir.model.primitive.StringDt getNameElement()
    Gets the value(s) for name ().
    String getPath()
    Gets the value(s) for path ().
    ca.uhn.fhir.model.primitive.StringDt getPathElement()
    Gets the value(s) for path ().
    String getSourceId()
    Gets the value(s) for sourceId ().
    ca.uhn.fhir.model.primitive.IdDt getSourceIdElement()
    Gets the value(s) for sourceId ().
    boolean isEmpty()  
    TestScript.Variable setHeaderField​(ca.uhn.fhir.model.primitive.StringDt theValue)
    Sets the value(s) for headerField ()
    TestScript.Variable setHeaderField​(String theString)
    Sets the value for headerField ()
    TestScript.Variable setName​(ca.uhn.fhir.model.primitive.StringDt theValue)
    Sets the value(s) for name ()
    TestScript.Variable setName​(String theString)
    Sets the value for name ()
    TestScript.Variable setPath​(ca.uhn.fhir.model.primitive.StringDt theValue)
    Sets the value(s) for path ()
    TestScript.Variable setPath​(String theString)
    Sets the value for path ()
    TestScript.Variable setSourceId​(ca.uhn.fhir.model.primitive.IdDt theValue)
    Sets the value(s) for sourceId ()
    TestScript.Variable setSourceId​(String theId)
    Sets the value for sourceId ()

    Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement

    getElementSpecificId, getId, setElementSpecificId, setId, setId

    Methods inherited from class ca.uhn.fhir.model.api.BaseElement

    addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hl7.fhir.instance.model.api.IBase

    fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData

    Methods inherited from interface ca.uhn.fhir.model.api.IIdentifiableElement

    getElementSpecificId, getId, setElementSpecificId, setId, setId
  • 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

      public TestScript.Variable setHeaderField​(String theString)
      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.