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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsVariable(String name) Checks whether a variable with the given name is resolve through this context.keySet()Resolve a value in this context.static SingleVariableContextsingleVariable(String name, TypedValue value)
-
Field Details
-
typedValue
-
name
-
-
Constructor Details
-
SingleVariableContext
-
-
Method Details
-
resolve
Description copied from interface:VariableContextResolve a value in this context.- Specified by:
resolvein 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:VariableContextChecks whether a variable with the given name is resolve through this context.- Specified by:
containsVariablein interfaceVariableContext- Parameters:
name- the name of the variable to check- Returns:
- true if the variable is resolve.
-
keySet
- Specified by:
keySetin interfaceVariableContext- Returns:
- a set of all variable names resolvable through this Context.
-
singleVariable
-