Class VariableScopeLocalAdapter
- java.lang.Object
-
- org.camunda.bpm.engine.impl.core.variable.scope.VariableScopeLocalAdapter
-
- All Implemented Interfaces:
VariableScope
public class VariableScopeLocalAdapter extends java.lang.Object implements VariableScope
Wraps a variable scope as if it has no parent such that it is reduced to its local variables. For examplegetVariable(String)
simply delegates togetVariableLocal(String)
.- Author:
- Thorben Lindhauer
-
-
Field Summary
Fields Modifier and Type Field Description protected VariableScope
wrappedScope
-
Constructor Summary
Constructors Constructor Description VariableScopeLocalAdapter(VariableScope wrappedScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getVariable(java.lang.String variableName)
java.lang.Object
getVariableLocal(java.lang.String variableName)
<T extends TypedValue>
TgetVariableLocalTyped(java.lang.String variableName)
<T extends TypedValue>
TgetVariableLocalTyped(java.lang.String variableName, boolean deserializeValue)
java.util.Set<java.lang.String>
getVariableNames()
java.util.Set<java.lang.String>
getVariableNamesLocal()
java.util.Map<java.lang.String,java.lang.Object>
getVariables()
java.lang.String
getVariableScopeKey()
java.util.Map<java.lang.String,java.lang.Object>
getVariablesLocal()
VariableMap
getVariablesLocalTyped()
VariableMap
getVariablesLocalTyped(boolean deserializeValues)
VariableMap
getVariablesTyped()
VariableMap
getVariablesTyped(boolean deserializeValues)
<T extends TypedValue>
TgetVariableTyped(java.lang.String variableName)
<T extends TypedValue>
TgetVariableTyped(java.lang.String variableName, boolean deserializeValue)
boolean
hasVariable(java.lang.String variableName)
boolean
hasVariableLocal(java.lang.String variableName)
boolean
hasVariables()
boolean
hasVariablesLocal()
void
removeVariable(java.lang.String variableName)
Removes the variable and creates a newHistoricVariableUpdateEntity
.void
removeVariableLocal(java.lang.String variableName)
Removes the local variable and creates a newHistoricVariableUpdateEntity
.void
removeVariables()
Removes the (local) variables and creates a newHistoricVariableUpdateEntity
for each of them.void
removeVariables(java.util.Collection<java.lang.String> variableNames)
Removes the variables and creates a newHistoricVariableUpdateEntity
for each of them.void
removeVariablesLocal()
Removes the (local) variables and creates a newHistoricVariableUpdateEntity
for each of them.void
removeVariablesLocal(java.util.Collection<java.lang.String> variableNames)
Removes the local variables and creates a newHistoricVariableUpdateEntity
for each of them.void
setVariable(java.lang.String variableName, java.lang.Object value)
void
setVariableLocal(java.lang.String variableName, java.lang.Object value)
void
setVariables(java.util.Map<java.lang.String,? extends java.lang.Object> variables)
void
setVariablesLocal(java.util.Map<java.lang.String,? extends java.lang.Object> variables)
-
-
-
Field Detail
-
wrappedScope
protected VariableScope wrappedScope
-
-
Constructor Detail
-
VariableScopeLocalAdapter
public VariableScopeLocalAdapter(VariableScope wrappedScope)
-
-
Method Detail
-
getVariableScopeKey
public java.lang.String getVariableScopeKey()
- Specified by:
getVariableScopeKey
in interfaceVariableScope
-
getVariables
public java.util.Map<java.lang.String,java.lang.Object> getVariables()
- Specified by:
getVariables
in interfaceVariableScope
-
getVariablesTyped
public VariableMap getVariablesTyped()
- Specified by:
getVariablesTyped
in interfaceVariableScope
-
getVariablesTyped
public VariableMap getVariablesTyped(boolean deserializeValues)
- Specified by:
getVariablesTyped
in interfaceVariableScope
-
getVariablesLocal
public java.util.Map<java.lang.String,java.lang.Object> getVariablesLocal()
- Specified by:
getVariablesLocal
in interfaceVariableScope
-
getVariablesLocalTyped
public VariableMap getVariablesLocalTyped()
- Specified by:
getVariablesLocalTyped
in interfaceVariableScope
-
getVariablesLocalTyped
public VariableMap getVariablesLocalTyped(boolean deserializeValues)
- Specified by:
getVariablesLocalTyped
in interfaceVariableScope
-
getVariable
public java.lang.Object getVariable(java.lang.String variableName)
- Specified by:
getVariable
in interfaceVariableScope
-
getVariableLocal
public java.lang.Object getVariableLocal(java.lang.String variableName)
- Specified by:
getVariableLocal
in interfaceVariableScope
-
getVariableTyped
public <T extends TypedValue> T getVariableTyped(java.lang.String variableName)
- Specified by:
getVariableTyped
in interfaceVariableScope
-
getVariableTyped
public <T extends TypedValue> T getVariableTyped(java.lang.String variableName, boolean deserializeValue)
- Specified by:
getVariableTyped
in interfaceVariableScope
-
getVariableLocalTyped
public <T extends TypedValue> T getVariableLocalTyped(java.lang.String variableName)
- Specified by:
getVariableLocalTyped
in interfaceVariableScope
-
getVariableLocalTyped
public <T extends TypedValue> T getVariableLocalTyped(java.lang.String variableName, boolean deserializeValue)
- Specified by:
getVariableLocalTyped
in interfaceVariableScope
-
getVariableNames
public java.util.Set<java.lang.String> getVariableNames()
- Specified by:
getVariableNames
in interfaceVariableScope
-
getVariableNamesLocal
public java.util.Set<java.lang.String> getVariableNamesLocal()
- Specified by:
getVariableNamesLocal
in interfaceVariableScope
-
setVariable
public void setVariable(java.lang.String variableName, java.lang.Object value)
- Specified by:
setVariable
in interfaceVariableScope
-
setVariableLocal
public void setVariableLocal(java.lang.String variableName, java.lang.Object value)
- Specified by:
setVariableLocal
in interfaceVariableScope
-
setVariables
public void setVariables(java.util.Map<java.lang.String,? extends java.lang.Object> variables)
- Specified by:
setVariables
in interfaceVariableScope
-
setVariablesLocal
public void setVariablesLocal(java.util.Map<java.lang.String,? extends java.lang.Object> variables)
- Specified by:
setVariablesLocal
in interfaceVariableScope
-
hasVariables
public boolean hasVariables()
- Specified by:
hasVariables
in interfaceVariableScope
-
hasVariablesLocal
public boolean hasVariablesLocal()
- Specified by:
hasVariablesLocal
in interfaceVariableScope
-
hasVariable
public boolean hasVariable(java.lang.String variableName)
- Specified by:
hasVariable
in interfaceVariableScope
-
hasVariableLocal
public boolean hasVariableLocal(java.lang.String variableName)
- Specified by:
hasVariableLocal
in interfaceVariableScope
-
removeVariable
public void removeVariable(java.lang.String variableName)
Description copied from interface:VariableScope
Removes the variable and creates a newHistoricVariableUpdateEntity
.- Specified by:
removeVariable
in interfaceVariableScope
-
removeVariableLocal
public void removeVariableLocal(java.lang.String variableName)
Description copied from interface:VariableScope
Removes the local variable and creates a newHistoricVariableUpdateEntity
.- Specified by:
removeVariableLocal
in interfaceVariableScope
-
removeVariables
public void removeVariables(java.util.Collection<java.lang.String> variableNames)
Description copied from interface:VariableScope
Removes the variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariables
in interfaceVariableScope
-
removeVariablesLocal
public void removeVariablesLocal(java.util.Collection<java.lang.String> variableNames)
Description copied from interface:VariableScope
Removes the local variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariablesLocal
in interfaceVariableScope
-
removeVariables
public void removeVariables()
Description copied from interface:VariableScope
Removes the (local) variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariables
in interfaceVariableScope
-
removeVariablesLocal
public void removeVariablesLocal()
Description copied from interface:VariableScope
Removes the (local) variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariablesLocal
in interfaceVariableScope
-
-