Source Code Cross Referenced for Customer.java in  » Development » JValidate » nl » knowlogy » validation » test » 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 » Development » JValidate » nl.knowlogy.validation.test 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * $Header: /cvsroot/jvalidate/jvalidate-framework/jvalidate/src/test/java/nl/knowlogy/validation/test/Customer.java,v 1.5 2007/04/23 22:14:55 roberthofstra Exp $
003:         * $Revision: 1.5 $
004:         * $Date: 2007/04/23 22:14:55 $
005:         * 
006:         * 
007:         * Created on Oct 6, 2004
008:         *
009:         * All right reserved(c) 2004, Knowlogy
010:         * 
011:         * Copyright   2004 - 2005 Knowlogy, the Netherlands. All rights reserved. 
012:         * All Knowlogy brand and product names are trademarks or registered trademarks 
013:         * of Knowlogy in the Netherlands and other countries. 
014:         * 
015:         * No part of this publication may be reproduced, transmitted, stored in a retrieval system, 
016:         * or translated into any human or computer language, in any form, or by any means, electronic, 
017:         * mechanical, magnetic, optical, chemical, manual, or otherwise, 
018:         * without the prior written permission of the copyright owner, Knowlogy.
019:         * 
020:         */
021:        package nl.knowlogy.validation.test;
022:
023:        /**
024:         * @validate.class
025:         * 
026:         * @author Robert
027:         */
028:        public class Customer {
029:
030:            private String number;
031:            private String firstName;
032:            private String lastName;
033:            private String creditcardNumber;
034:
035:            private Address homeAdress;
036:            private Address shippingAdress;
037:            private String email;
038:
039:            private int shoeSize;
040:
041:            /**
042:             * @validate.isnotblank
043:             * @validate.maxlength value="20"
044:             * 
045:             * @validate.group value="names"
046:             * 
047:             * @param firstName The firstName to set.
048:             * @return Returns the firstName.
049:             */
050:            public String getFirstName() {
051:                return firstName;
052:            }
053:
054:            /**
055:             * @param firstName The firstName to set.
056:             */
057:            public void setFirstName(String firstName) {
058:                this .firstName = firstName;
059:            }
060:
061:            /**
062:             * @validate.isrequired
063:             * @validate.isnotblank
064:             * @validate.maxlength value="2"
065:             * 
066:             * @validate.group value="names"
067:             * 
068:             * @return Returns the lastName.
069:             */
070:            public String getLastName() {
071:                return lastName;
072:            }
073:
074:            /**
075:             * 
076:             * @param lastName The lastName to set.
077:             */
078:            public void setLastName(String lastName) {
079:                this .lastName = lastName;
080:            }
081:
082:            /**
083:             * @return Returns the number.
084:             */
085:            public String getNumber() {
086:                return number;
087:            }
088:
089:            /**
090:             * @param number The number to set.
091:             */
092:            public void setNumber(String number) {
093:                this .number = number;
094:            }
095:
096:            /**
097:             * 
098:             * @validate.isvalid
099:             * @validate.isrequired 
100:             * 
101:             * @return Returns the homeAdress.
102:             */
103:            public Address getHomeAdress() {
104:                return homeAdress;
105:            }
106:
107:            /**
108:             * 
109:             * @param homeAdress The homeAdress to set.
110:             */
111:            public void setHomeAdress(Address homeAdress) {
112:                this .homeAdress = homeAdress;
113:            }
114:
115:            /**
116:             * 
117:             * @validate.isvalid
118:             * 
119:             * @return Returns the shippingAdress.
120:             */
121:            public Address getShippingAdress() {
122:                return shippingAdress;
123:            }
124:
125:            /**
126:             * 
127:             * @param shippingAdress The shippingAdress to set.
128:             */
129:            public void setShippingAdress(Address shippingAdress) {
130:                this .shippingAdress = shippingAdress;
131:            }
132:
133:            /**
134:             * @validate.custom class="nl.knowlogy.validation.customvalidators.CreditcardNumberValidator" errorcode="invalid.creditcardnumber"
135:             * 
136:             * @return Returns the creditcardNumber.
137:             */
138:            public String getCreditcardNumber() {
139:                return creditcardNumber;
140:            }
141:
142:            /**
143:             * @param creditcardNumber The creditcardNumber to set.
144:             */
145:            public void setCreditcardNumber(String creditcardNumber) {
146:                this .creditcardNumber = creditcardNumber;
147:            }
148:
149:            /**
150:             * @validate.minsize value="22"
151:             * @validate.maxsize value="50"
152:             * 	 
153:             * @return
154:             */
155:            public int getShoeSize() {
156:                return shoeSize;
157:            }
158:
159:            /**
160:             * @param shoeSize
161:             */
162:            public void setShoeSize(int shoeSize) {
163:                this .shoeSize = shoeSize;
164:            }
165:
166:            public String getEmail() {
167:                return email;
168:            }
169:
170:            /**
171:             * @validate.maxsize value="150"
172:             * @validate.email
173:             *   
174:             * @return
175:             */
176:            public void setEmail(String email) {
177:                this.email = email;
178:            }
179:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.