Class 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
Definition: Variable is set based either on element value in response body or on header field value in the response headers.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for headerField ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for headerField ().getName()
Gets the value(s) for name ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for name ().getPath()
Gets the value(s) for path ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for path ().Gets the value(s) for sourceId ().ca.uhn.fhir.model.primitive.IdDt
Gets the value(s) for sourceId ().boolean
isEmpty()
setHeaderField
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for headerField ()setHeaderField
(String theString) Sets the value for headerField ()setName
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for name ()Sets the value for name ()setPath
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for path ()Sets the value for path ()setSourceId
(ca.uhn.fhir.model.primitive.IdDt theValue) Sets the value(s) for sourceId ()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
-
Variable
public Variable()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.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 interfaceca.uhn.fhir.model.api.ICompositeElement
-
getNameElement
Gets the value(s) for name (). creating it if it does not exist. Will not returnnull
.Definition: Descriptive name for this variable
-
getName
Gets the value(s) for name (). creating it if it does not exist. This method may returnnull
.Definition: Descriptive name for this variable
-
setName
Sets the value(s) for name ()Definition: Descriptive name for this variable
-
setName
Sets the value for name ()Definition: Descriptive name for this variable
-
getHeaderFieldElement
Gets the value(s) for headerField (). creating it if it does not exist. Will not returnnull
.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 returnnull
.Definition: Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.
-
setHeaderField
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
Gets the value(s) for path (). creating it if it does not exist. Will not returnnull
.Definition: XPath or JSONPath against the fixture body. When variables are defined, either headerField must be specified or path, but not both.
-
getPath
Gets the value(s) for path (). creating it if it does not exist. This method may returnnull
.Definition: XPath or JSONPath against the fixture body. When variables are defined, either headerField must be specified or path, but not both.
-
setPath
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
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
Gets the value(s) for sourceId (). creating it if it does not exist. Will not returnnull
.Definition: Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.
-
getSourceId
Gets the value(s) for sourceId (). creating it if it does not exist. This method may returnnull
.Definition: Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.
-
setSourceId
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.
-