Class CompositeVariableContext
- java.lang.Object
-
- org.camunda.bpm.engine.variable.impl.context.CompositeVariableContext
-
- All Implemented Interfaces:
VariableContext
public class CompositeVariableContext extends java.lang.Object implements VariableContext
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected VariableContext[]
delegateContexts
-
Constructor Summary
Constructors Constructor Description CompositeVariableContext(VariableContext[] delegateContexts)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompositeVariableContext
compose(VariableContext... variableContexts)
boolean
containsVariable(java.lang.String name)
Checks whether a variable with the given name is resolve through this context.java.util.Set<java.lang.String>
keySet()
TypedValue
resolve(java.lang.String variableName)
Resolve a value in this context.
-
-
-
Field Detail
-
delegateContexts
protected final VariableContext[] delegateContexts
-
-
Constructor Detail
-
CompositeVariableContext
public CompositeVariableContext(VariableContext[] delegateContexts)
-
-
Method Detail
-
resolve
public TypedValue resolve(java.lang.String variableName)
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
public boolean containsVariable(java.lang.String name)
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
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySet
in interfaceVariableContext
- Returns:
- a set of all variable names resolvable through this Context.
-
compose
public static CompositeVariableContext compose(VariableContext... variableContexts)
-
-