KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.util.ArrayList JavaDoc;
24 import java.util.List JavaDoc;
25
26 import com.jaspersoft.jasperserver.api.metadata.common.domain.ResourceReference;
27
28 /**
29  * @author tkavanagh
30  * @version $Id: InputControlBean.java 3501 2006-05-31 18:05:15Z tony $
31  */

32
33 public class InputControlBean extends ResourceBean {
34
35     private byte type;
36     private boolean isMandatory;
37     private boolean isReadOnly;
38     private DataTypeBean dataType;
39     private ListOfValuesBean listOfValues;
40     private QueryBean query;
41     private String JavaDoc[] queryVisibleColumns;
42     private String JavaDoc queryValueColumn;
43     private String JavaDoc defaultValue; // orig type Object
44
private String JavaDoc[] defaultValues; // orig type List
45

46     public DataTypeBean getDataType() {
47         return dataType;
48     }
49     
50     public void setDataType(DataTypeBean dataType) {
51         this.dataType = dataType;
52     }
53     
54     public String JavaDoc getDefaultValue() {
55         return defaultValue;
56     }
57     
58     public void setDefaultValue(String JavaDoc defaultValue) {
59         this.defaultValue = defaultValue;
60     }
61     
62     public String JavaDoc[] getDefaultValues() {
63         return defaultValues;
64     }
65     
66     public void setDefaultValues(String JavaDoc[] defaultValues) {
67         this.defaultValues = defaultValues;
68     }
69     
70     public boolean getIsMandatory() {
71         return isMandatory;
72     }
73     
74     public void setIsMandatory(boolean isMandatory) {
75         this.isMandatory = isMandatory;
76     }
77     
78     public boolean getIsReadOnly() {
79         return isReadOnly;
80     }
81     
82     public void setIsReadOnly(boolean isReadOnly) {
83         this.isReadOnly = isReadOnly;
84     }
85     
86     public ListOfValuesBean getListOfValues() {
87         return listOfValues;
88     }
89     
90     public void setListOfValues(ListOfValuesBean listOfValues) {
91         this.listOfValues = listOfValues;
92     }
93     
94     public QueryBean getQuery() {
95         return query;
96     }
97     
98     public void setQuery(QueryBean query) {
99         this.query = query;
100     }
101     
102     public String JavaDoc getQueryValueColumn() {
103         return queryValueColumn;
104     }
105     
106     public void setQueryValueColumn(String JavaDoc queryValueColumn) {
107         this.queryValueColumn = queryValueColumn;
108     }
109     
110     public String JavaDoc[] getQueryVisibleColumns() {
111         return queryVisibleColumns;
112     }
113     
114     public void setQueryVisibleColumns(String JavaDoc[] queryVisibleColumns) {
115         this.queryVisibleColumns = queryVisibleColumns;
116     }
117     
118     public byte getType() {
119         return type;
120     }
121     
122     public void setType(byte type) {
123         this.type = type;
124     }
125 }
126
Popular Tags