Java Doc for VelocityContext.java in  » Template-Engine » Velocity » org » apache » velocity » 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 » Template Engine » Velocity » org.apache.velocity 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.velocity.context.AbstractContext
   org.apache.velocity.VelocityContext

All known Subclasses:   org.apache.dvsl.DVSLNodeContext,  org.apache.velocity.tools.view.context.ChainedContext,  org.apache.dvsl.DVSLContext,
VelocityContext
public class VelocityContext extends AbstractContext implements Cloneable(Code)
General purpose implemention of the application Context interface for general application use. This class should be used in place of the original Context class. This implementation uses a HashMap (@see java.util.HashMap ) for data storage. This context implementation cannot be shared between threads without those threads synchronizing access between them, as the HashMap is not synchronized, nor are some of the fundamentals of AbstractContext. If you need to share a Context between threads with simultaneous access for some reason, please create your own and extend the interface Context
See Also:   org.apache.velocity.context.Context
author:
   Geir Magnusson Jr.
author:
   Jason van Zyl
author:
   Fedor Karpelevitch
author:
   Daniel Rall
version:
   $Id: VelocityContext.java 463298 2006-10-12 16:10:32Z henning $



Constructor Summary
public  VelocityContext()
     Creates a new instance (with no inner context).
public  VelocityContext(Map context)
     Creates a new instance with the provided storage (and no inner context).
public  VelocityContext(Context innerContext)
     Chaining constructor, used when you want to wrap a context in another.
public  VelocityContext(Map context, Context innerContext)
     Initializes internal storage (never to null), and inner context.

Method Summary
public  Objectclone()
     Clones this context object.
public  booleaninternalContainsKey(Object key)
    
public  ObjectinternalGet(String key)
    
public  Object[]internalGetKeys()
    
public  ObjectinternalPut(String key, Object value)
    
public  ObjectinternalRemove(Object key)
    


Constructor Detail
VelocityContext
public VelocityContext()(Code)
Creates a new instance (with no inner context).



VelocityContext
public VelocityContext(Map context)(Code)
Creates a new instance with the provided storage (and no inner context).
Parameters:
  context -



VelocityContext
public VelocityContext(Context innerContext)(Code)
Chaining constructor, used when you want to wrap a context in another. The inner context will be 'read only' - put() calls to the wrapping context will only effect the outermost context
Parameters:
  innerContext - The Context implementation towrap.



VelocityContext
public VelocityContext(Map context, Context innerContext)(Code)
Initializes internal storage (never to null), and inner context.
Parameters:
  context - Internal storage, or null tocreate default storage.
Parameters:
  innerContext - Inner context.




Method Detail
clone
public Object clone()(Code)
Clones this context object. A deep copy of this Context.



internalContainsKey
public boolean internalContainsKey(Object key)(Code)
determines if there is a value for the given key
Parameters:
  key - name of value to check true if non-null value in store



internalGet
public Object internalGet(String key)(Code)
retrieves value for key from internal storage
Parameters:
  key - name of value to get value as object



internalGetKeys
public Object[] internalGetKeys()(Code)
returns array of keys keys as []



internalPut
public Object internalPut(String key, Object value)(Code)
stores the value for key to internal storage
Parameters:
  key - name of value to store
Parameters:
  value - value to store previous value of key as Object



internalRemove
public Object internalRemove(Object key)(Code)
remove a key/value pair from the internal storage
Parameters:
  key - name of value to remove value removed



Methods inherited from org.apache.velocity.context.AbstractContext
public boolean containsKey(Object key)(Code)(Java Doc)
public Object get(String key)(Code)(Java Doc)
public Context getChainedContext()(Code)(Java Doc)
public Object[] getKeys()(Code)(Java Doc)
abstract public boolean internalContainsKey(Object key)(Code)(Java Doc)
abstract public Object internalGet(String key)(Code)(Java Doc)
abstract public Object[] internalGetKeys()(Code)(Java Doc)
abstract public Object internalPut(String key, Object value)(Code)(Java Doc)
abstract public Object internalRemove(Object key)(Code)(Java Doc)
public Object put(String key, Object value)(Code)(Java Doc)
public Object remove(Object key)(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.