|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.script.SimpleBindings
public class SimpleBindings
SimpleNamespace is an implementation of Namespace using an instance of java.util.HashMap or another Map passed in a constructor to store and expose key-pair values.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry |
| Constructor Summary | |
|---|---|
SimpleBindings()
Constructs a SimpleNamespace. |
|
SimpleBindings(java.util.Map map)
Constructs a SimpleNamespace and initializes it using a specified map. |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set |
entrySet()
|
java.lang.Object |
get(java.lang.Object key)
|
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified key in a java.util.Map. |
void |
putAll(java.util.Map toMerge)
Copies all of the mappings from the specified map to this map. |
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
|
java.util.Collection |
values()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public SimpleBindings()
public SimpleBindings(java.util.Map map)
map - a map which is used to initialize the
SimpleNamespace| Method Detail |
|---|
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
throws java.lang.IllegalArgumentException
put in interface java.util.Mapput in interface Bindingskey - the String value which uniquely identifies the
objectvalue - the object to be stored.
java.lang.IllegalArgumentException - if the key is null or is not
java.lang.String type
public void putAll(java.util.Map toMerge)
throws java.lang.IllegalArgumentException
putAll in interface java.util.MapputAll in interface BindingstoMerge - mappings to be stored in the map.
java.lang.IllegalArgumentException - if a key is null or is not
java.lang.String type in the specified mappublic int size()
size in interface java.util.Mappublic void clear()
clear in interface java.util.Mappublic boolean isEmpty()
isEmpty in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mappublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mappublic java.util.Collection values()
values in interface java.util.Mappublic java.util.Set entrySet()
entrySet in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Mappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||