Java Doc for ViewParameters.java in  » Web-Framework » RSF » uk » org » ponder » rsf » viewstate » 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 » RSF » uk.org.ponder.rsf.viewstate 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   uk.org.ponder.rsf.viewstate.ViewParameters

All known Subclasses:   uk.org.ponder.rsf.viewstate.SimpleViewParameters,  uk.org.ponder.rsf.viewstate.EntityCentredViewParameters,
ViewParameters
abstract public class ViewParameters implements AnyViewParameters(Code)
An RSF ViewParameters is a rule for extracting the relevant fields from a URL (or similar spec) that specify the content of a view and representing them in a typesafe way as an object. Users will more frequently extend the more convenient class SimpleViewParameters . The actual work of parsing is done by the more stateful bean ViewParametersParser.

Every ViewParameters class must be default-constructible.

The base class abstracting common functionality for specifying a view state of a web application, independent of any particular application or url mapping technology. In order to get generate a complete external URL, you must use one of the methods of uk.org.ponder.rsf.viewstate.ViewStateHandler .
author:
   Antranig Basman (antranig@caret.cam.ac.uk)



Field Summary
final public static  StringBASE_PARSE_SPEC
    
final public static  StringTRUNK_PARSE_PREFIX
     The special prefix which is used in ViewParameters.getParseSpec() to represent a part of URL state which will be placed in the URL trunk rather than an attribute.
final public static  String[]cloneexceptions
     "Ephemeral" fields of ViewParameters state that will not propagate by default.
public  Stringdebugrender
     This field is set indicating that this view will be rendered in "debug mode" - full RSF IDs will be allocated to every rendered element, and omitted elements will be highlighted in place.
public  Stringendflow
     This field is set indicating that this view is a "terminal flow view", representing the summary to the user of a multi-request state (flow).
public  Stringerrorredirect
     This field is set indicating that this view is a redirect from a level-1 rendering error.
public  Stringerrortoken
     This field is set in the case of an error arising from user-submitted data, in which case the data is being returned for correction.
public  Stringflowtoken
     The following public fields define RSF housekeeping information, and should not generally be read or written by user code.

A globally unique key identifying view-specific state that is held on the server, restorable in the form of a request-scope bean container.

public  StringviewID
     The primary key identifying this view - this is generally used as a key not only to view templates, component producers, but also into flow states.


Method Summary
public  AnyViewParameterscopy()
    
public  ViewParameterscopyBase()
     See ViewParameters.copyBase(DeepBeanCloner) below.
public  ViewParameterscopyBase(DeepBeanCloner cloner)
     Make a "deep clone" of this ViewParameters object, representing the "same" view state but sharing no Object state with this object.
public  AnyViewParametersget()
    
public  StringgetAnchorField()
     Return a field which will be used to form the "anchor" text in the URL state - in HTTP, this typically follows the URL body with a # character.
abstract public  StringgetParseSpec()
     Returns a "parse specification" suitable for mapping this ViewParameters onto a URL.

This is a comma-separated list of field specifications.

Field Detail
BASE_PARSE_SPEC
final public static String BASE_PARSE_SPEC(Code)



TRUNK_PARSE_PREFIX
final public static String TRUNK_PARSE_PREFIX(Code)
The special prefix which is used in ViewParameters.getParseSpec() to represent a part of URL state which will be placed in the URL trunk rather than an attribute. For example, the { ViewParameters.viewID itself is commonly mapped to @0 indicating it is the first path segment in the "pathInfo" section of the URL.



cloneexceptions
final public static String[] cloneexceptions(Code)
"Ephemeral" fields of ViewParameters state that will not propagate by default.



debugrender
public String debugrender(Code)
This field is set indicating that this view will be rendered in "debug mode" - full RSF IDs will be allocated to every rendered element, and omitted elements will be highlighted in place.



endflow
public String endflow(Code)
This field is set indicating that this view is a "terminal flow view", representing the summary to the user of a multi-request state (flow). Some, none or all of the request state accumulated during the flow may be available to render this view, most likely in a more rapidly-expiring cache (default is to use the same TokenStateHolder as the error state). It is only valid to set this field if flowtoken is also set.



errorredirect
public String errorredirect(Code)
This field is set indicating that this view is a redirect from a level-1 rendering error. Any further errors will be treated as fatal, to avoid a redirect loop. Usually not set.



errortoken
public String errortoken(Code)
This field is set in the case of an error arising from user-submitted data, in which case the data is being returned for correction. Not generally set.



flowtoken
public String flowtoken(Code)
The following public fields define RSF housekeeping information, and should not generally be read or written by user code.

A globally unique key identifying view-specific state that is held on the server, restorable in the form of a request-scope bean container. Need not be set.




viewID
public String viewID(Code)
The primary key identifying this view - this is generally used as a key not only to view templates, component producers, but also into flow states. This field is always set.





Method Detail
copy
public AnyViewParameters copy()(Code)
For the AnyViewParameters interface *



copyBase
public ViewParameters copyBase()(Code)
See ViewParameters.copyBase(DeepBeanCloner) below. Uses a ThreadLocal call to acquire the standard DeepBeanCloner bound to the current thread - necessary since ViewParameters objects are cloned in all sorts of lightweight contexts. Use the method below by preference if at all possible.



copyBase
public ViewParameters copyBase(DeepBeanCloner cloner)(Code)
Make a "deep clone" of this ViewParameters object, representing the "same" view state but sharing no Object state with this object. To enable this to work automatically, all extra members from derived classes must be POJO beans or peas. See DeepBeanCloner for explanation of the algorithm used. Use this method if the performance or architecture impact of the no-args method bothers you.



get
public AnyViewParameters get()(Code)
Pea proxying method



getAnchorField
public String getAnchorField()(Code)
Return a field which will be used to form the "anchor" text in the URL state - in HTTP, this typically follows the URL body with a # character.



getParseSpec
abstract public String getParseSpec()(Code)
Returns a "parse specification" suitable for mapping this ViewParameters onto a URL.

This is a comma-separated list of field specifications. Each field specification takes the form of the name of an URL attribute, optionally followed by the colon character : and an EL path into this ViewParameters object onto which the attribute should be mapped. Instead of a URL attribute, URL pathinfo segments can be specified by providing strings of the form @0, @1, etc.

If users derive from SimpleViewParameters and do not override this method, a default parse specification will be inferred which maps all defined properties onto similarly-named URL attributes. A string representing a URL parse specification



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.