KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jaspersoft > jasperserver > util > DataTypeBean


1 /*
2  * Copyright (C) 2006 JasperSoft http://www.jaspersoft.com
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed WITHOUT ANY WARRANTY; and without the
10  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
15  * or write to:
16  *
17  * Free Software Foundation, Inc.,
18  * 59 Temple Place - Suite 330,
19  * Boston, MA USA 02111-1307
20  */

21 package com.jaspersoft.jasperserver.util;
22
23 /**
24  * @author tkavanagh
25  * @version $Id: DataTypeBean.java 3501 2006-05-31 18:05:15Z tony $
26  */

27
28 public class DataTypeBean extends ResourceBean {
29
30     private byte type;
31     private Integer JavaDoc maxLength;
32     private Integer JavaDoc decimals;
33     private String JavaDoc regularExpr;
34     private String JavaDoc minValue; // orig type Comparable
35
private String JavaDoc maxValue; // orig type Comparable
36
private boolean isStrictMin;
37     private boolean isStrictMax;
38     
39     public Integer JavaDoc getDecimals() {
40         return decimals;
41     }
42     public void setDecimals(Integer JavaDoc decimals) {
43         this.decimals = decimals;
44     }
45     public boolean getIsStrictMax() {
46         return isStrictMax;
47     }
48     public void setIsStrictMax(boolean isStrictMax) {
49         this.isStrictMax = isStrictMax;
50     }
51     public boolean getIsStrictMin() {
52         return isStrictMin;
53     }
54     public void setIsStrictMin(boolean isStrictMin) {
55         this.isStrictMin = isStrictMin;
56     }
57     public Integer JavaDoc getMaxLength() {
58         return maxLength;
59     }
60     public void setMaxLength(Integer JavaDoc maxLength) {
61         this.maxLength = maxLength;
62     }
63     public String JavaDoc getMaxValue() {
64         return maxValue;
65     }
66     public void setMaxValue(String JavaDoc maxValue) {
67         this.maxValue = maxValue;
68     }
69     public String JavaDoc getMinValue() {
70         return minValue;
71     }
72     public void setMinValue(String JavaDoc minValue) {
73         this.minValue = minValue;
74     }
75     public String JavaDoc getRegularExpr() {
76         return regularExpr;
77     }
78     public void setRegularExpr(String JavaDoc regularExpr) {
79         this.regularExpr = regularExpr;
80     }
81     public byte getType() {
82         return type;
83     }
84     public void setType(byte type) {
85         this.type = type;
86     }
87     
88 }
89
Popular Tags