public class VariableContextScriptBindings extends Object implements Bindings
Bindings
implementation wrapping a provided
VariableContext
and Bindings
instance.
Enhances the Bindings with the variables resolvable through the VariableContext
.
The variables are treated as read only: all mutating operations write through to the
wrapped Bindings
.Modifier and Type | Field and Description |
---|---|
protected org.camunda.bpm.engine.variable.context.VariableContext |
variableContext |
protected Bindings |
wrappedBindings |
Constructor and Description |
---|
VariableContextScriptBindings(Bindings wrappedBindings,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
calculateBindingMap() |
void |
clear() |
boolean |
containsKey(Object key)
Dedicated implementation which does not fall back on the
calculateBindingMap() for performance reasons |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key)
Dedicated implementation which does not fall back on the
calculateBindingMap() for performance reasons |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String name,
Object value)
Dedicated implementation which does not fall back on the
calculateBindingMap() for performance reasons |
void |
putAll(Map<? extends String,?> toMerge) |
Object |
remove(Object key) |
int |
size() |
protected Object |
unpack(org.camunda.bpm.engine.variable.value.TypedValue resolvedValue) |
Collection<Object> |
values() |
static VariableContextScriptBindings |
wrap(Bindings wrappedBindings,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
protected Bindings wrappedBindings
protected org.camunda.bpm.engine.variable.context.VariableContext variableContext
public VariableContextScriptBindings(Bindings wrappedBindings, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
public boolean containsKey(Object key)
calculateBindingMap()
for performance reasonscontainsKey
in interface Map<String,Object>
containsKey
in interface Bindings
public Object get(Object key)
calculateBindingMap()
for performance reasonspublic Object put(String name, Object value)
calculateBindingMap()
for performance reasonspublic boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
protected Object unpack(org.camunda.bpm.engine.variable.value.TypedValue resolvedValue)
public static VariableContextScriptBindings wrap(Bindings wrappedBindings, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
Copyright © 2018. All rights reserved.