Java Doc for MVELScriptContextMap.java in  » Scripting » mvel » org » mvel » jsr223 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » mvel » org.mvel.jsr223 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mvel.jsr223.MVELScriptContextMap

MVELScriptContextMap
public class MVELScriptContextMap implements Map<String, Object>(Code)
This class wraps around the ScriptContext to expose the ENGINE_SCOPE values for the MVEL engine. All methods invoked on this class are delegated to the ScriptContext. All MVELScriptContextMap#put(String, Object) are stored under the SCRIPT_ENGINE scope.
author:
   Richard L. Burton III
version:
   1.0
since:
   MVEL 1.2



Constructor Summary
public  MVELScriptContextMap(ScriptContext context)
     Constructs a new MVELScriptContextMap that wraps around the provided ScriptContext object.

Method Summary
public  voidclear()
     Removes all mappings from this map (optional operation).
public  booleancontainsKey(Object key)
     Returns true if the key name is bound in any scope in the context. The key must be a String.
Parameters:
  key - key whose presence in this map is to be tested.
public  booleancontainsValue(Object value)
     Returns true if this map maps one or more keys to the specified value.
public  Set<Entry<String, Object>>entrySet()
     Returns a set view of the mappings contained in this map.
public  Objectget(Object key)
     Returns the value bound in the most specific (lowest numbered) bindings space for this key. key must be a String.
Parameters:
  key - key whose associated value is to be returned.
public  booleanisEmpty()
     Returns true if no bindings are present in any scope of the context.
public  Set<String>keySet()
     Returns the total key set of all scopes.
public  Objectput(String key, Object value)
     Set the key, value binding in the ENGINE_SCOPE of the context.
Parameters:
  key - key with which the specified value is to be associated.
Parameters:
  value - value to be associated with the specified key.
public  voidputAll(Map<? extends String, ? extends Object> map)
     All put operations are done at the ENGINE_SCOPE level.
public  Objectremove(Object okey)
     Removes the mapping from the engine scope.

Returns the value to which the map previously associated the key, or null if the map contained no mapping for this key.

public  intsize()
     Returns the number of unique object bindings in all scopes.
public  Collection<Object>values()
     Returns the total values set of all scopes.


Constructor Detail
MVELScriptContextMap
public MVELScriptContextMap(ScriptContext context)(Code)
Constructs a new MVELScriptContextMap that wraps around the provided ScriptContext object.
Parameters:
  context - The ScriptContext that'll be wrapped around.




Method Detail
clear
public void clear()(Code)
Removes all mappings from this map (optional operation).
throws:
  UnsupportedOperationException - clear is not supported by this map.



containsKey
public boolean containsKey(Object key)(Code)
Returns true if the key name is bound in any scope in the context. The key must be a String.
Parameters:
  key - key whose presence in this map is to be tested. true if this map contains a mapping for the specified key.
throws:
  ClassCastException - if the key is of an inappropriate type for thismap (optional).
throws:
  NullPointerException - if the key is null and this map doesnot permit null keys (optional).



containsValue
public boolean containsValue(Object value)(Code)
Returns true if this map maps one or more keys to the specified value. More formally, returns true if and only if this map contains at least one mapping to a value v such that (value==null ? v==null : value.equals(v)). This operation will probably require time linear in the map size for most implementations of the Map interface.
Parameters:
  value - value whose presence in this map is to be tested. true if this map maps one or more keys to the specifiedvalue.
throws:
  ClassCastException - if the value is of an inappropriate type for thismap (optional).
throws:
  NullPointerException - if the value is null and this map doesnot permit null values (optional).



entrySet
public Set<Entry<String, Object>> entrySet()(Code)
Returns a set view of the mappings contained in this map. Each element in the returned set is a java.util.Map.Entry . The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's own remove operation, or through the setValue operation on a map entry returned by the iterator) the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations. a set view of the mappings contained in this map.



get
public Object get(Object key)(Code)
Returns the value bound in the most specific (lowest numbered) bindings space for this key. key must be a String.
Parameters:
  key - key whose associated value is to be returned. the value to which this map maps the specified key, or nullif the map contains no mapping for this key.
throws:
  ClassCastException - if the key is of an inappropriate type for thismap (optional).
throws:
  NullPointerException - if the key is null and this map doesnot permit null keys (optional).
See Also:   MVELScriptContextMap.containsKey(Object)



isEmpty
public boolean isEmpty()(Code)
Returns true if no bindings are present in any scope of the context.



keySet
public Set<String> keySet()(Code)
Returns the total key set of all scopes. This method violates the Map contract by returning an unmodifiable set. a set view of the keys contained in this map.



put
public Object put(String key, Object value)(Code)
Set the key, value binding in the ENGINE_SCOPE of the context.
Parameters:
  key - key with which the specified value is to be associated.
Parameters:
  value - value to be associated with the specified key. previous value associated with specified key, or null ifthere was no mapping for key. A null return can alsoindicate that the map previously associated null with thespecified key, if the implementation supports null values.
throws:
  UnsupportedOperationException - if the put operation is notsupported by this map.
throws:
  ClassCastException - if the class of the specified key or valueprevents it from being stored in this map.
throws:
  IllegalArgumentException - if some aspect of this key or valueprevents it from being stored in this map.
throws:
  NullPointerException - if this map does not permit null keysor values, and the specified key or value is null.



putAll
public void putAll(Map<? extends String, ? extends Object> map)(Code)
All put operations are done at the ENGINE_SCOPE level.
Parameters:
  map - Mappings to be stored in this map.
throws:
  UnsupportedOperationException - if the putAll method is notsupported by this map.
throws:
  ClassCastException - if the class of a key or value in the specifiedmap prevents it from being stored in this map.
throws:
  IllegalArgumentException - some aspect of a key or value in thespecified map prevents it from being stored in this map.
throws:
  NullPointerException - if the specified map is null, or ifthis map does not permit null keys or values, and the specified mapcontains null keys or values.



remove
public Object remove(Object okey)(Code)
Removes the mapping from the engine scope.

Returns the value to which the map previously associated the key, or null if the map contained no mapping for this key. (A null return can also indicate that the map previously associated null with the specified key if the implementation supports null values.) The map will not contain a mapping for the specified key once the call returns.
Parameters:
  okey - key whose mapping is to be removed from the map. previous value associated with specified key, or null ifthere was no mapping for key.
throws:
  ClassCastException - if the key is of an inappropriate type for thismap (optional).
throws:
  NullPointerException - if the key is null and this map doesnot permit null keys (optional).
throws:
  UnsupportedOperationException - if the remove method is notsupported by this map.




size
public int size()(Code)
Returns the number of unique object bindings in all scopes. (duplicate, shadowed, bindings count as a single binging).



values
public Collection<Object> values()(Code)
Returns the total values set of all scopes. This method violates the Map contract by returning an unmodifiable set. a collection view of the values contained in this map.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.