org.camunda.bpm.dmn.engine.impl.el
Class VariableContextScriptBindings

java.lang.Object
  extended by org.camunda.bpm.dmn.engine.impl.el.VariableContextScriptBindings
All Implemented Interfaces:
Map<String,Object>, Bindings

public class VariableContextScriptBindings
extends Object
implements Bindings

A Script 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.

Author:
Daniel Meyer

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  org.camunda.bpm.engine.variable.context.VariableContext variableContext
           
protected  Bindings wrappedBindings
           
 
Constructor Summary
VariableContextScriptBindings(Bindings wrappedBindings, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

wrappedBindings

protected Bindings wrappedBindings

variableContext

protected org.camunda.bpm.engine.variable.context.VariableContext variableContext
Constructor Detail

VariableContextScriptBindings

public VariableContextScriptBindings(Bindings wrappedBindings,
                                     org.camunda.bpm.engine.variable.context.VariableContext variableContext)
Method Detail

containsKey

public boolean containsKey(Object key)
Dedicated implementation which does not fall back on the calculateBindingMap() for performance reasons

Specified by:
containsKey in interface Map<String,Object>
Specified by:
containsKey in interface Bindings

get

public Object get(Object key)
Dedicated implementation which does not fall back on the calculateBindingMap() for performance reasons

Specified by:
get in interface Map<String,Object>
Specified by:
get in interface Bindings

put

public Object put(String name,
                  Object value)
Dedicated implementation which does not fall back on the calculateBindingMap() for performance reasons

Specified by:
put in interface Map<String,Object>
Specified by:
put in interface Bindings

entrySet

public Set<Map.Entry<String,Object>> entrySet()
Specified by:
entrySet in interface Map<String,Object>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,Object>

size

public int size()
Specified by:
size in interface Map<String,Object>

values

public Collection<Object> values()
Specified by:
values in interface Map<String,Object>

putAll

public void putAll(Map<? extends String,?> toMerge)
Specified by:
putAll in interface Map<String,Object>
Specified by:
putAll in interface Bindings

remove

public Object remove(Object key)
Specified by:
remove in interface Map<String,Object>
Specified by:
remove in interface Bindings

clear

public void clear()
Specified by:
clear in interface Map<String,Object>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,Object>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,Object>

calculateBindingMap

protected Map<String,Object> calculateBindingMap()

unpack

protected Object unpack(org.camunda.bpm.engine.variable.value.TypedValue resolvedValue)

wrap

public static VariableContextScriptBindings wrap(Bindings wrappedBindings,
                                                 org.camunda.bpm.engine.variable.context.VariableContext variableContext)


Copyright © 2017 camunda services GmbH. All rights reserved.