Source Code Cross Referenced for IWrapper.java in  » J2EE » Pustefix » de » schlund » pfixcore » generator » 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 » J2EE » Pustefix » de.schlund.pfixcore.generator 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * This file is part of PFIXCORE.
03:         *
04:         * PFIXCORE is free software; you can redistribute it and/or modify
05:         * it under the terms of the GNU Lesser General Public License as published by
06:         * the Free Software Foundation; either version 2 of the License, or
07:         * (at your option) any later version.
08:         *
09:         * PFIXCORE is distributed in the hope that it will be useful,
10:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
11:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12:         * GNU Lesser General Public License for more details.
13:         *
14:         * You should have received a copy of the GNU Lesser General Public License
15:         * along with PFIXCORE; if not, write to the Free Software
16:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17:         *
18:         */
19:        package de.schlund.pfixcore.generator;
20:
21:        import java.io.IOException;
22:
23:        import de.schlund.pfixxml.resources.FileResource;
24:        import de.schlund.util.statuscodes.StatusCode;
25:
26:        /**
27:         * IWrappers are objects which aggregate part of the submitted data
28:         * of a HTTP post or get event in a typesafe way and present getter
29:         * and setter methods to manipulate that data.</br>
30:         * Classes which implement the IWrapper interface are not written by
31:         * hand, but are autogenerated from a describtion written in a 
32:         * special xml format.</br>
33:         * From the application programmers point of view IWrappers
34:         * are never instanciated directly. Following snipplet
35:         * shows the use of an <code>IWrapper</code> in the handleSubmittedData method
36:         * of an {@link IHandler}.
37:         * <pre>
38:         *   public void handleSubmittedData(Context context, IWrapper wrapper) throws Exception {
39:         *      AdultInfo info = (AdultInfo) wrapper;
40:         *   }
41:         * </pre>
42:         * <br/>
43:         * For more information see the 'IWrapper_XML_Description_Language.txt' in the docs
44:         * directory of the Pfixcore package.
45:         */
46:
47:        public interface IWrapper extends Comparable<IWrapper> {
48:            void init(String prefix) throws Exception;
49:
50:            void initLogging(FileResource logdir, String pagename,
51:                    String visitid);
52:
53:            void tryParamLogging() throws IOException;
54:
55:            void tryErrorLogging() throws IOException;
56:
57:            void load(RequestData req) throws Exception;
58:
59:            /**
60:             * Load the IWrapper's typed data from the String representations set via the 
61:             * setStringValXXX methods, i.e. the string values are processed (checked and casted) 
62:             * just like values provided by a RequestData object.
63:             * This method requires that the IWrapper is already initialized (that the init
64:             * method has been called). Amongst others it can be used to manually instantiate 
65:             * and populate IWrapper objects within unit tests.
66:             * @throws Exception
67:             */
68:            void loadFromStringValues() throws Exception;
69:
70:            boolean errorHappened();
71:
72:            void defineOrder(int order);
73:
74:            // The reason for these to not being called get* is to avoid nameclashes with
75:            // descendents who may want to use a Parameter called e.g. "Prefix" (which would
76:            // result in a method getPrefix be generated)
77:            Integer gimmeOrder();
78:
79:            String gimmePrefix();
80:
81:            IHandler gimmeIHandler();
82:
83:            IWrapperParam[] gimmeAllParams();
84:
85:            IWrapperParam[] gimmeAllParamsWithErrors();
86:
87:            IWrapperParamDefinition[] gimmeAllParamDefinitions();
88:
89:            void addSCode(IWrapperParam param, StatusCode scode, String[] args,
90:                    String level);
91:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.