Java Doc for XScriptManager.java in  » Web-Framework » cocoon » org » apache » cocoon » components » xscript » 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 » Web Framework » cocoon » org.apache.cocoon.components.xscript 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.components.xscript.XScriptManager

All known Subclasses:   org.apache.cocoon.components.xscript.XScriptManagerImpl,
XScriptManager
public interface XScriptManager (Code)
XScriptManager is the public interface used to interact with the XScript component, which implements the supporting code for the XScript language.
author:
   Ovidiu Predescu
author:
   Vadim Gritsenko
version:
   CVS $Id: XScriptManager.java 433543 2006-08-22 06:22:54Z crossley $
since:
   August 4, 2001


Field Summary
 intALL_SCOPES
     Search for a variable in all the accessible scopes.
 intGLOBAL_SCOPE
     The variable's global scope.
 intPAGE_SCOPE
     The page scope.
 intREQUEST_SCOPE
     The request scope.
 StringROLE
    
 intSESSION_SCOPE
     The session scope.
 StringXSCRIPT_NS
    


Method Summary
 XScriptObjectget(XScriptVariableScope pageScope, Map objectModel, String name, int scope)
     Obtains the object value of the name variable in scope.
 XScriptObjectgetFirst(XScriptVariableScope pageScope, Map objectModel, String name)
     Search for the first occurence of the variable name.

The search happens first in the session scope identified by sessionContext.

 voidput(XScriptVariableScope pageScope, Map objectModel, String name, XScriptObject value, int scope)
     Defines or overwrites the value of variable name in scope.
 XScriptObjectremove(XScriptVariableScope pageScope, Map objectModel, String name, int scope)
     Removes a variable previously declared in scope within context.
 XScriptObjectremoveFirst(XScriptVariableScope pageScope, Map objectModel, String name)
     Remove the first appearance of name in the all the currently accessible scopes.

Field Detail
ALL_SCOPES
int ALL_SCOPES(Code)
Search for a variable in all the accessible scopes. The variable is first searched in the current session scope. If no variable is found here, the current page scope is searched next. If nothing is found either, the global scope is searched.



GLOBAL_SCOPE
int GLOBAL_SCOPE(Code)
The variable's global scope. Each Cocoon instance has exactly one global scope for variables.



PAGE_SCOPE
int PAGE_SCOPE(Code)
The page scope. This is scope very specific to an XSP page, and defines variables visible only within the context of that page. No other XSP page can access these variables, unless it knows the identifier used by that page to store its variables. This identifier is not necessarily the URL or full path of that page; it is up to the page to define it.



REQUEST_SCOPE
int REQUEST_SCOPE(Code)
The request scope. This is scope specific to request, and defines variables visible only within the context of that request. Once request is processed, these variables are lost.



ROLE
String ROLE(Code)



SESSION_SCOPE
int SESSION_SCOPE(Code)
The session scope. This scope is specific to a particular activation of an XSP page, which is usually identified by the session id of the user that sent the HTTP request. From XScript's point of view however, the session identifier is not interpreted in any way, so a client can define its own notion of "session".



XSCRIPT_NS
String XSCRIPT_NS(Code)





Method Detail
get
XScriptObject get(XScriptVariableScope pageScope, Map objectModel, String name, int scope) throws IllegalArgumentException(Code)
Obtains the object value of the name variable in scope. The context parameter is interpreted differently depending on the value of scope, as follows:
Parameters:
  objectModel - an instance of Cocoon object model used to obtain context
Parameters:
  name - a String value
Parameters:
  scope - an int value a XScriptObject value



getFirst
XScriptObject getFirst(XScriptVariableScope pageScope, Map objectModel, String name) throws IllegalArgumentException(Code)
Search for the first occurence of the variable name.

The search happens first in the session scope identified by sessionContext. If no variable is found here, the search continues in the page scope identified by pageContext. If no variable is found here, it's finally searched in the global scope.

The XScriptObject value of the variable is returned if a variable is found in one of the scopes, otherwise an exception is thrown.
Parameters:
  objectModel - an instance of Cocoon object model used to obtain context
Parameters:
  name - a String value a XScriptObject value
exception:
  IllegalArgumentException - if an error occurs




put
void put(XScriptVariableScope pageScope, Map objectModel, String name, XScriptObject value, int scope) throws IllegalArgumentException(Code)
Defines or overwrites the value of variable name in scope. The context argument is interpreted as described in XScriptManager.get(XScriptVariableScope,Map,String,int) .
Parameters:
  objectModel - an instance of Cocoon object model used to obtain context
Parameters:
  name - a String value
Parameters:
  value - a XScriptObject value
Parameters:
  scope - an int value



remove
XScriptObject remove(XScriptVariableScope pageScope, Map objectModel, String name, int scope) throws IllegalArgumentException(Code)
Removes a variable previously declared in scope within context. Such a variable could be declared using the XScriptManager.put(XScriptVariableScope,Map,String,XScriptObject,int) method.
Parameters:
  objectModel - an instance of Cocoon object model used to obtain context
Parameters:
  name - a String value
Parameters:
  scope - an int value
exception:
  IllegalArgumentException - if an error occurs



removeFirst
XScriptObject removeFirst(XScriptVariableScope pageScope, Map objectModel, String name) throws IllegalArgumentException(Code)
Remove the first appearance of name in the all the currently accessible scopes. The search happens as described in XScriptManager.getFirst(XScriptVariableScope,Map,String) .
Parameters:
  objectModel - an instance of Cocoon object model used to obtain context
Parameters:
  name - a String value
exception:
  IllegalArgumentException - if an error occurs



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