Class VariableScopeContext
- java.lang.Object
-
- org.camunda.bpm.engine.impl.dmn.invocation.VariableScopeContext
-
- All Implemented Interfaces:
VariableContext
public class VariableScopeContext extends java.lang.Object implements VariableContext
Implementation of theVariableContextinterface backed by aVariableScope.- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected VariableScopevariableScope
-
Constructor Summary
Constructors Constructor Description VariableScopeContext(VariableScope variableScope)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsVariable(java.lang.String variableName)Checks whether a variable with the given name is resolve through this context.java.util.Set<java.lang.String>keySet()TypedValueresolve(java.lang.String variableName)Resolve a value in this context.static VariableScopeContextwrap(VariableScope variableScope)
-
-
-
Field Detail
-
variableScope
protected final VariableScope variableScope
-
-
Constructor Detail
-
VariableScopeContext
public VariableScopeContext(VariableScope variableScope)
-
-
Method Detail
-
resolve
public TypedValue resolve(java.lang.String variableName)
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
public boolean containsVariable(java.lang.String variableName)
Description copied from interface:VariableContextChecks whether a variable with the given name is resolve through this context.- Specified by:
containsVariablein interfaceVariableContext- Parameters:
variableName- the name of the variable to check- Returns:
- true if the variable is resolve.
-
keySet
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySetin interfaceVariableContext- Returns:
- a set of all variable names resolvable through this Context.
-
wrap
public static VariableScopeContext wrap(VariableScope variableScope)
-
-