Source Code Cross Referenced for ValidationAware.java in  » J2EE » webwork-2.2.6 » com » opensymphony » xwork » 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 » webwork 2.2.6 » com.opensymphony.xwork 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright (c) 2002-2006 by OpenSymphony
003:         * All rights reserved.
004:         */
005:        package com.opensymphony.xwork;
006:
007:        import java.util.Collection;
008:        import java.util.Map;
009:
010:        /**
011:         * ValidationAware classes can accept Action (class level) or field level error messages. Action level messages are kept
012:         * in a Collection. Field level error messages are kept in a Map from String field name to a List of field error msgs.
013:         *
014:         * @author plightbo 
015:         * @version $Revision: 861 $
016:         */
017:        public interface ValidationAware {
018:
019:            /**
020:             * Set the Collection of Action-level String error messages.
021:             *
022:             * @param errorMessages
023:             */
024:            void setActionErrors(Collection errorMessages);
025:
026:            /**
027:             * Get the Collection of Action-level error messages for this action. Error messages should not
028:             * be added directly here, as implementations are free to return a new Collection or an
029:             * Unmodifiable Collection.
030:             *
031:             * @return Collection of String error messages
032:             */
033:            Collection getActionErrors();
034:
035:            /**
036:             * Set the Collection of Action-level String messages (not errors).
037:             */
038:            void setActionMessages(Collection messages);
039:
040:            /**
041:             * Get the Collection of Action-level messages for this action. Messages should not be added
042:             * directly here, as implementations are free to return a new Collection or an Unmodifiable
043:             * Collection.
044:             *
045:             * @return Collection of String messages
046:             */
047:            Collection getActionMessages();
048:
049:            /**
050:             * Set the field error map of fieldname (String) to Collection of String error messages.
051:             *
052:             * @param errorMap
053:             */
054:            void setFieldErrors(Map errorMap);
055:
056:            /**
057:             * Get the field specific errors associated with this action. Error messages should not be added
058:             * directly here, as implementations are free to return a new Collection or an Unmodifiable
059:             * Collection.
060:             *
061:             * @return Map with errors mapped from fieldname (String) to Collection of String error messages
062:             */
063:            Map getFieldErrors();
064:
065:            /**
066:             * Add an Action-level error message to this Action.
067:             *
068:             * @param anErrorMessage
069:             */
070:            void addActionError(String anErrorMessage);
071:
072:            /**
073:             * Add an Action-level message to this Action.
074:             */
075:            void addActionMessage(String aMessage);
076:
077:            /**
078:             * Add an error message for a given field.
079:             *
080:             * @param fieldName    name of field
081:             * @param errorMessage the error message
082:             */
083:            void addFieldError(String fieldName, String errorMessage);
084:
085:            /**
086:             * Check whether there are any Action-level error messages.
087:             *
088:             * @return true if any Action-level error messages have been registered
089:             */
090:            boolean hasActionErrors();
091:
092:            /**
093:             * Checks whether there are any Action-level messages.
094:             *
095:             * @return true if any Action-level messages have been registered
096:             */
097:            boolean hasActionMessages();
098:
099:            /**
100:             * Note that this does not have the same meaning as in WW 1.x.
101:             *
102:             * @return (hasActionErrors() || hasFieldErrors())
103:             */
104:            boolean hasErrors();
105:
106:            /**
107:             * Check whether there are any field errors associated with this action.
108:             *
109:             * @return whether there are any field errors
110:             */
111:            boolean hasFieldErrors();
112:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.