Package org.fhirfrog.frog.testplan
Class VariableContext
java.lang.Object
org.fhirfrog.frog.testplan.VariableContext
Hierarchical variable context for test execution.
Manages variable storage with parent-child scoping. Child contexts inherit variables from parent (read-only) but cannot modify parent variables.
Example usage:
VariableContext parent = new VariableContext();
parent.put("patientId", "123");
VariableContext child = parent.createChild();
child.get("patientId"); // Returns "123" (inherited)
child.put("observationId", "456"); // Only in child
parent.get("observationId"); // Returns null (isolation)
Thread-safety: Not thread-safe. Each test execution should use its own context tree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoid
-
Constructor Details
-
VariableContext
public VariableContext()
-
-
Method Details
-
put
-
get
-
has
-
createChild
-