Interface VariableContext
- All Known Implementing Classes:
CompositeVariableContext
,EmptyVariableContext
,SingleVariableContext
,VariableMapImpl
,VariableScopeContext
public interface VariableContext
A context for variables. Allows resolving variables.
An API may choose to accept a VariableContext instead of a map of concrete values
in situations where passing all available variables would be expensive and
lazy-loading is a desirable optimization.
- Author:
- Daniel Meyer
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsVariable
(String variableName) Checks whether a variable with the given name is resolve through this context.keySet()
Resolve a value in this context.
-
Method Details
-
resolve
Resolve a value in this context.- Parameters:
variableName
- the name of the variable to resolve.- Returns:
- the value of the variable or null in case the variable does not exist.
-
containsVariable
Checks whether a variable with the given name is resolve through this context.- Parameters:
variableName
- the name of the variable to check- Returns:
- true if the variable is resolve.
-
keySet
- Returns:
- a set of all variable names resolvable through this Context.
-