KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jaspersoft > jasperserver > api > metadata > common > domain > DataType


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.api.metadata.common.domain;
22
23
24 /**
25  * @author Teodor Danciu (teodord@users.sourceforge.net)
26  * @version $Id: InputControl.java 2332 2006-03-09 02:23:53Z tony $
27  */

28 public interface DataType extends Resource
29 {
30
31     /**
32      *
33      */

34     public static final byte TYPE_TEXT = 1;
35     public static final byte TYPE_NUMBER = 2;
36     public static final byte TYPE_DATE = 3;
37     public static final byte TYPE_DATE_TIME = 4;
38
39
40     /**
41      *
42      */

43     public byte getType();
44
45     /**
46      *
47      */

48     public void setType(byte type);
49
50     /**
51      *
52      */

53     public Integer JavaDoc getMaxLength();
54
55     /**
56      *
57      */

58     public void setMaxLength(Integer JavaDoc maxLength);
59
60     /**
61      *
62      */

63     public Integer JavaDoc getDecimals();
64
65     /**
66      *
67      */

68     public void setDecimals(Integer JavaDoc decimals);
69
70     /**
71      *
72      */

73     public String JavaDoc getRegularExpr();
74
75     /**
76      *
77      */

78     public void setRegularExpr(String JavaDoc regExp);
79
80     /**
81      *
82      */

83     public Comparable JavaDoc getMinValue();
84
85     /**
86      *
87      */

88     public void setMinValue(Comparable JavaDoc minValue);
89
90     /**
91      *
92      */

93     public Comparable JavaDoc getMaxValue();
94
95     /**
96      *
97      */

98     public void setMaxValue(Comparable JavaDoc maxValue);
99
100     /**
101      *
102      */

103     public boolean isStrictMin();
104
105     /**
106      *
107      */

108     public void setStrictMin(boolean isStrictMin);
109
110     /**
111      *
112      */

113     public boolean isStrictMax();
114
115     /**
116      *
117      */

118     public void setStrictMax(boolean isStrictMax);
119
120 }
121
Popular Tags