Class SingleVariableContext
java.lang.Object
org.camunda.bpm.engine.variable.impl.context.SingleVariableContext
- All Implemented Interfaces:
VariableContext
An
VariableContext
allowing to resolve a single variable only.- Author:
- Daniel Meyer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsVariable
(String name) Checks whether a variable with the given name is resolve through this context.keySet()
Resolve a value in this context.static SingleVariableContext
singleVariable
(String name, TypedValue value)
-
Field Details
-
typedValue
-
name
-
-
Constructor Details
-
SingleVariableContext
-
-
Method Details
-
resolve
Description copied from interface:VariableContext
Resolve a value in this context.- Specified by:
resolve
in interfaceVariableContext
- 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
Description copied from interface:VariableContext
Checks whether a variable with the given name is resolve through this context.- Specified by:
containsVariable
in interfaceVariableContext
- Parameters:
name
- the name of the variable to check- Returns:
- true if the variable is resolve.
-
keySet
- Specified by:
keySet
in interfaceVariableContext
- Returns:
- a set of all variable names resolvable through this Context.
-
singleVariable
-