public abstract class VariableScopeImpl extends Object implements Serializable, VariableScope
| Modifier and Type | Field and Description |
|---|---|
protected ELContext |
cachedElContext |
protected String |
id |
protected Map<String,VariableInstanceEntity> |
variableInstances |
| Constructor and Description |
|---|
VariableScopeImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearVariable(VariableInstanceEntity variableInstance,
Object newValue) |
protected Set<String> |
collectVariableNames(Set<String> variableNames) |
protected Map<String,Object> |
collectVariables(HashMap<String,Object> variables) |
protected VariableInstanceEntity |
createVariableInstance(String variableName,
Object value,
VariableScope sourceActivityExecution) |
protected void |
createVariableLocal(String variableName,
Object value) |
protected void |
createVariableLocal(String variableName,
Object value,
VariableScope sourceActivityExecution)
only called when a new variable is created on this variable scope.
|
protected void |
createVariablesLocal(Map<String,? extends Object> variables) |
protected void |
deleteVariableInstanceForExplicitUserCall(VariableInstanceEntity variableInstance,
VariableScope sourceActivityExecution) |
void |
deleteVariablesInstanceForLeavingScope() |
protected void |
ensureVariableInstancesInitialized() |
protected void |
fireHistoricVariableInstanceCreate(VariableInstanceEntity variableInstance,
VariableScope sourceActivityExecution) |
protected void |
fireHistoricVariableInstanceDelete(VariableInstanceEntity variableInstance,
VariableScope sourceActivityExecution) |
protected void |
fireHistoricVariableInstanceUpdate(VariableInstanceEntity variableInstance,
VariableScope sourceActivityExecution) |
ELContext |
getCachedElContext() |
String |
getId() |
protected VariableType |
getNewVariableType(Object newValue) |
protected abstract VariableScopeImpl |
getParentVariableScope() |
protected VariableScope |
getSourceActivityVariableScope() |
Object |
getVariable(String variableName) |
Object |
getVariableLocal(String variableName) |
Set<String> |
getVariableNames() |
Set<String> |
getVariableNamesLocal() |
Map<String,Object> |
getVariables() |
Map<String,Object> |
getVariablesLocal() |
boolean |
hasVariable(String variableName) |
boolean |
hasVariableLocal(String variableName) |
boolean |
hasVariables() |
boolean |
hasVariablesLocal() |
protected abstract void |
initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance) |
protected boolean |
isAutoFireHistoryEvents() |
protected abstract List<VariableInstanceEntity> |
loadVariableInstances() |
void |
removeVariable(String variableName)
Removes the variable and creates a new
HistoricVariableUpdateEntity. |
protected void |
removeVariable(String variableName,
VariableScope sourceActivityExecution) |
void |
removeVariableLocal(String variableName)
Removes the local variable and creates a new
HistoricVariableUpdateEntity. |
protected void |
removeVariableLocal(String variableName,
VariableScope sourceActivityExecution) |
void |
removeVariables()
Removes the (local) variables and creates a new
HistoricVariableUpdateEntity for each of them. |
void |
removeVariables(Collection<String> variableNames)
Removes the variables and creates a new
HistoricVariableUpdateEntity for each of them. |
void |
removeVariablesLocal()
Removes the (local) variables and creates a new
HistoricVariableUpdateEntity for each of them. |
void |
removeVariablesLocal(Collection<String> variableNames)
Removes the local variables and creates a new
HistoricVariableUpdateEntity for each of them. |
void |
setCachedElContext(ELContext cachedElContext) |
void |
setId(String id) |
void |
setVariable(String variableName,
Object value) |
protected void |
setVariable(String variableName,
Object value,
VariableScope sourceActivityExecution) |
void |
setVariableLocal(String variableName,
Object value) |
protected void |
setVariableLocal(String variableName,
Object value,
VariableScope sourceActivityExecution) |
void |
setVariables(Map<String,? extends Object> variables) |
void |
setVariablesLocal(Map<String,? extends Object> variables) |
protected void |
updateVariableInstance(VariableInstanceEntity variableInstance,
Object value,
VariableScope sourceActivityExecution) |
protected Map<String,VariableInstanceEntity> variableInstances
protected ELContext cachedElContext
protected String id
protected abstract List<VariableInstanceEntity> loadVariableInstances()
protected abstract VariableScopeImpl getParentVariableScope()
protected abstract void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
protected void ensureVariableInstancesInitialized()
public Map<String,Object> getVariables()
getVariables in interface VariableScopepublic Object getVariable(String variableName)
getVariable in interface VariableScopepublic Object getVariableLocal(String variableName)
getVariableLocal in interface VariableScopepublic boolean hasVariables()
hasVariables in interface VariableScopepublic boolean hasVariablesLocal()
hasVariablesLocal in interface VariableScopepublic boolean hasVariable(String variableName)
hasVariable in interface VariableScopepublic boolean hasVariableLocal(String variableName)
hasVariableLocal in interface VariableScopepublic Set<String> getVariableNames()
getVariableNames in interface VariableScopepublic Map<String,Object> getVariablesLocal()
getVariablesLocal in interface VariableScopepublic Set<String> getVariableNamesLocal()
getVariableNamesLocal in interface VariableScopepublic void setVariables(Map<String,? extends Object> variables)
setVariables in interface VariableScopepublic void setVariablesLocal(Map<String,? extends Object> variables)
setVariablesLocal in interface VariableScopepublic void removeVariables()
VariableScopeHistoricVariableUpdateEntity for each of them.removeVariables in interface VariableScopepublic void removeVariablesLocal()
VariableScopeHistoricVariableUpdateEntity for each of them.removeVariablesLocal in interface VariableScopepublic void deleteVariablesInstanceForLeavingScope()
public void removeVariables(Collection<String> variableNames)
VariableScopeHistoricVariableUpdateEntity for each of them.removeVariables in interface VariableScopepublic void removeVariablesLocal(Collection<String> variableNames)
VariableScopeHistoricVariableUpdateEntity for each of them.removeVariablesLocal in interface VariableScopepublic void setVariable(String variableName, Object value)
setVariable in interface VariableScopeprotected void setVariable(String variableName, Object value, VariableScope sourceActivityExecution)
public void setVariableLocal(String variableName, Object value)
setVariableLocal in interface VariableScopeprotected void setVariableLocal(String variableName, Object value, VariableScope sourceActivityExecution)
protected void clearVariable(VariableInstanceEntity variableInstance, Object newValue)
protected VariableType getNewVariableType(Object newValue)
protected void createVariableLocal(String variableName, Object value, VariableScope sourceActivityExecution)
public void removeVariable(String variableName)
VariableScopeHistoricVariableUpdateEntity.removeVariable in interface VariableScopeprotected void removeVariable(String variableName, VariableScope sourceActivityExecution)
public void removeVariableLocal(String variableName)
VariableScopeHistoricVariableUpdateEntity.removeVariableLocal in interface VariableScopeprotected VariableScope getSourceActivityVariableScope()
protected void removeVariableLocal(String variableName, VariableScope sourceActivityExecution)
protected void deleteVariableInstanceForExplicitUserCall(VariableInstanceEntity variableInstance, VariableScope sourceActivityExecution)
protected void updateVariableInstance(VariableInstanceEntity variableInstance, Object value, VariableScope sourceActivityExecution)
protected VariableInstanceEntity createVariableInstance(String variableName, Object value, VariableScope sourceActivityExecution)
protected void fireHistoricVariableInstanceDelete(VariableInstanceEntity variableInstance, VariableScope sourceActivityExecution)
protected void fireHistoricVariableInstanceCreate(VariableInstanceEntity variableInstance, VariableScope sourceActivityExecution)
protected void fireHistoricVariableInstanceUpdate(VariableInstanceEntity variableInstance, VariableScope sourceActivityExecution)
protected boolean isAutoFireHistoryEvents()
public ELContext getCachedElContext()
public void setCachedElContext(ELContext cachedElContext)
public String getId()
public void setId(String id)
Copyright © 2015. All rights reserved.