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 SummaryFields Modifier and Type Field Description protected VariableContext[]delegateContexts
 - 
Constructor SummaryConstructors Constructor Description CompositeVariableContext(VariableContext[] delegateContexts)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompositeVariableContextcompose(VariableContext... variableContexts)booleancontainsVariable(java.lang.String name)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.
 
- 
- 
- 
Field Detail- 
delegateContextsprotected final VariableContext[] delegateContexts 
 
- 
 - 
Constructor Detail- 
CompositeVariableContextpublic CompositeVariableContext(VariableContext[] delegateContexts) 
 
- 
 - 
Method Detail- 
resolvepublic TypedValue resolve(java.lang.String variableName) Description copied from interface:VariableContextResolve a value in this context.- Specified by:
- resolvein interface- VariableContext
- Parameters:
- variableName- the name of the variable to resolve.
- Returns:
- the value of the variable or null in case the variable does not exist.
 
 - 
containsVariablepublic boolean containsVariable(java.lang.String name) Description copied from interface:VariableContextChecks whether a variable with the given name is resolve through this context.- Specified by:
- containsVariablein interface- VariableContext
- Parameters:
- name- the name of the variable to check
- Returns:
- true if the variable is resolve.
 
 - 
keySetpublic java.util.Set<java.lang.String> keySet() - Specified by:
- keySetin interface- VariableContext
- Returns:
- a set of all variable names resolvable through this Context.
 
 - 
composepublic static CompositeVariableContext compose(VariableContext... variableContexts) 
 
- 
 
-