View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.apache.commons.validator;
18  
19  /**
20   * Value object that contains different fields to test type conversion validation.
21   */
22  public class TypeBean {
23  
24      private String sByte;
25      private String sShort;
26      private String sInteger;
27      private String sLong;
28      private String sFloat;
29      private String sDouble;
30      private String sDate;
31      private String sCreditCard;
32  
33      public String getByte() {
34          return sByte;
35      }
36  
37      public String getCreditCard() {
38          return sCreditCard;
39      }
40  
41      public String getDate() {
42          return sDate;
43      }
44  
45      public String getDouble() {
46          return sDouble;
47      }
48  
49      public String getFloat() {
50          return sFloat;
51      }
52  
53      public String getInteger() {
54          return sInteger;
55      }
56  
57      public String getLong() {
58          return sLong;
59      }
60  
61      public String getShort() {
62          return sShort;
63      }
64  
65      public void setByte(final String sByte) {
66          this.sByte = sByte;
67      }
68  
69      public void setCreditCard(final String sCreditCard) {
70          this.sCreditCard = sCreditCard;
71      }
72  
73      public void setDate(final String sDate) {
74          this.sDate = sDate;
75      }
76  
77      public void setDouble(final String sDouble) {
78          this.sDouble = sDouble;
79      }
80  
81      public void setFloat(final String sFloat) {
82          this.sFloat = sFloat;
83      }
84  
85      public void setInteger(final String sInteger) {
86          this.sInteger = sInteger;
87      }
88  
89      public void setLong(final String sLong) {
90          this.sLong = sLong;
91      }
92  
93      public void setShort(final String sShort) {
94          this.sShort = sShort;
95      }
96  
97  }