KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > validator > TypeBean


1 /*
2  * $Id: TypeBean.java 155434 2005-02-26 13:16:41Z dirkv $
3  * $Rev$
4  * $Date: 2005-02-26 05:16:41 -0800 (Sat, 26 Feb 2005) $
5  *
6  * ====================================================================
7  * Copyright 2001-2005 The Apache Software Foundation
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */

21
22
23 package org.apache.commons.validator;
24
25 /**
26  * Value object that contains different fields to test type conversion
27  * validation.
28  */

29 public class TypeBean {
30
31     private String JavaDoc sByte = null;
32     private String JavaDoc sShort = null;
33     private String JavaDoc sInteger = null;
34     private String JavaDoc sLong = null;
35     private String JavaDoc sFloat = null;
36     private String JavaDoc sDouble = null;
37     private String JavaDoc sDate = null;
38     private String JavaDoc sCreditCard = null;
39
40     public String JavaDoc getByte() {
41        return sByte;
42     }
43     
44     public void setByte(String JavaDoc sByte) {
45         this.sByte = sByte;
46     }
47     
48     public String JavaDoc getShort() {
49        return sShort;
50     }
51     
52     public void setShort(String JavaDoc sShort) {
53         this.sShort = sShort;
54     }
55
56     public String JavaDoc getInteger() {
57        return sInteger;
58     }
59     
60     public void setInteger(String JavaDoc sInteger) {
61         this.sInteger = sInteger;
62     }
63
64     public String JavaDoc getLong() {
65        return sLong;
66     }
67     
68     public void setLong(String JavaDoc sLong) {
69         this.sLong = sLong;
70     }
71
72     public String JavaDoc getFloat() {
73        return sFloat;
74     }
75     
76     public void setFloat(String JavaDoc sFloat) {
77         this.sFloat = sFloat;
78     }
79
80     public String JavaDoc getDouble() {
81        return sDouble;
82     }
83     
84     public void setDouble(String JavaDoc sDouble) {
85         this.sDouble = sDouble;
86     }
87
88     public String JavaDoc getDate() {
89        return sDate;
90     }
91     
92     public void setDate(String JavaDoc sDate) {
93         this.sDate = sDate;
94     }
95
96     public String JavaDoc getCreditCard() {
97        return sCreditCard;
98     }
99     
100     public void setCreditCard(String JavaDoc sCreditCard) {
101         this.sCreditCard = sCreditCard;
102     }
103       
104 }
Popular Tags