org.ow2.orchestra.pvm.internal.script
Class EnvironmentBindings

java.lang.Object
  extended by org.ow2.orchestra.pvm.internal.script.EnvironmentBindings
All Implemented Interfaces:
Map<String,Object>, javax.script.Bindings

public class EnvironmentBindings
extends Object
implements javax.script.Bindings

Author:
Tom Baeyens

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  Environment environment
           
protected  String[] readContextNames
           
protected  String writeContextName
           
 
Constructor Summary
EnvironmentBindings(String[] readContextNames, String writeContextName)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<String,Object>> entrySet()
           
 Object get(Object key)
           
protected  Context getReadContext(Object key)
           
 boolean isEmpty()
           
 Set<String> keySet()
           
 Object put(String key, Object value)
           
 void putAll(Map<? extends String,? extends Object> toMerge)
           
 Object remove(Object key)
           
 int size()
           
 Collection<Object> values()
           
 
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

readContextNames

protected String[] readContextNames

writeContextName

protected String writeContextName

environment

protected Environment environment
Constructor Detail

EnvironmentBindings

public EnvironmentBindings(String[] readContextNames,
                           String writeContextName)
Method Detail

get

public Object get(Object key)
Specified by:
get in interface Map<String,Object>
Specified by:
get in interface javax.script.Bindings

getReadContext

protected Context getReadContext(Object key)

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,Object>
Specified by:
containsKey in interface javax.script.Bindings

put

public Object put(String key,
                  Object value)
Specified by:
put in interface Map<String,Object>
Specified by:
put in interface javax.script.Bindings

putAll

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

remove

public Object remove(Object key)
Specified by:
remove in interface Map<String,Object>
Specified by:
remove in interface javax.script.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>

entrySet

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

isEmpty

public boolean isEmpty()
Specified by:
isEmpty 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>


Copyright © 2011 OW2 Consortium. All Rights Reserved.