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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)StringgetHeaderField()Gets the value(s) for headerField ().ca.uhn.fhir.model.primitive.StringDtgetHeaderFieldElement()Gets the value(s) for headerField ().StringgetName()Gets the value(s) for name ().ca.uhn.fhir.model.primitive.StringDtgetNameElement()Gets the value(s) for name ().StringgetPath()Gets the value(s) for path ().ca.uhn.fhir.model.primitive.StringDtgetPathElement()Gets the value(s) for path ().StringgetSourceId()Gets the value(s) for sourceId ().ca.uhn.fhir.model.primitive.IdDtgetSourceIdElement()Gets the value(s) for sourceId ().booleanisEmpty()TestScript.VariablesetHeaderField(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for headerField ()TestScript.VariablesetHeaderField(String theString)Sets the value for headerField ()TestScript.VariablesetName(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for name ()TestScript.VariablesetName(String theString)Sets the value for name ()TestScript.VariablesetPath(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for path ()TestScript.VariablesetPath(String theString)Sets the value for path ()TestScript.VariablesetSourceId(ca.uhn.fhir.model.primitive.IdDt theValue)Sets the value(s) for sourceId ()TestScript.VariablesetSourceId(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
-
-
-
-
Constructor Detail
-
Variable
public Variable()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin 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:
getAllPopulatedChildElementsOfTypein interfaceca.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 returnnull.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 returnnull.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 returnnull.Definition: Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.
-
getHeaderField
public String 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
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 returnnull.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 returnnull.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 returnnull.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 returnnull.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
public TestScript.Variable setSourceId(String theId)
Sets the value for sourceId ()Definition: Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.
-
-