KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > efs > openreports > services > info > ReportInfo


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

19
20 package org.efs.openreports.services.info;
21
22 import java.io.Serializable JavaDoc;
23
24 /**
25  * ReportInfo object.
26  *
27  * @author Erik Swenson
28  * @see ParameterInfo
29  *
30  */

31
32 public class ReportInfo implements Serializable JavaDoc
33 {
34     private Integer JavaDoc id;
35     private String JavaDoc name;
36     private String JavaDoc description;
37     private ParameterInfo[] parameters;
38     private boolean pdfExportEnabled;
39     private boolean htmlExportEnabled;
40     private boolean csvExportEnabled;
41     private boolean xlsExportEnabled;
42     private boolean rtfExportEnabled;
43     private boolean textExportEnabled;
44     private boolean excelExportEnabled;
45     private boolean hidden;
46     private int defaultExportType;
47
48     public ReportInfo()
49     {
50     }
51
52     public void setId(Integer JavaDoc id)
53     {
54         this.id = id;
55     }
56
57     public String JavaDoc toString()
58     {
59         return name;
60     }
61
62     public String JavaDoc getDescription()
63     {
64         return description;
65     }
66
67     public Integer JavaDoc getId()
68     {
69         return id;
70     }
71
72     public String JavaDoc getName()
73     {
74         return name;
75     }
76
77     public void setDescription(String JavaDoc description)
78     {
79         this.description = description;
80     }
81
82     public void setName(String JavaDoc name)
83     {
84         this.name = name;
85     }
86
87     public ParameterInfo[] getParameters()
88     {
89         return parameters;
90     }
91
92     public void setParameters(ParameterInfo[] parameters)
93     {
94         this.parameters = parameters;
95     }
96
97     public boolean isCsvExportEnabled()
98     {
99         return csvExportEnabled;
100     }
101
102     public void setCsvExportEnabled(boolean csvExportEnabled)
103     {
104         this.csvExportEnabled = csvExportEnabled;
105     }
106
107     public boolean isHtmlExportEnabled()
108     {
109         return htmlExportEnabled;
110     }
111
112     public void setHtmlExportEnabled(boolean htmlExportEnabled)
113     {
114         this.htmlExportEnabled = htmlExportEnabled;
115     }
116
117     public boolean isPdfExportEnabled()
118     {
119         return pdfExportEnabled;
120     }
121
122     public void setPdfExportEnabled(boolean pdfExportEnabled)
123     {
124         this.pdfExportEnabled = pdfExportEnabled;
125     }
126
127     public boolean isXlsExportEnabled()
128     {
129         return xlsExportEnabled;
130     }
131
132     public void setXlsExportEnabled(boolean xlsExportEnabled)
133     {
134         this.xlsExportEnabled = xlsExportEnabled;
135     }
136
137     public boolean isExcelExportEnabled()
138     {
139         return excelExportEnabled;
140     }
141
142     public void setExcelExportEnabled(boolean excelExportEnabled)
143     {
144         this.excelExportEnabled = excelExportEnabled;
145     }
146
147     public boolean isRtfExportEnabled()
148     {
149         return rtfExportEnabled;
150     }
151
152     public void setRtfExportEnabled(boolean rtfExportEnabled)
153     {
154         this.rtfExportEnabled = rtfExportEnabled;
155     }
156
157     public boolean isTextExportEnabled()
158     {
159         return textExportEnabled;
160     }
161
162     public void setTextExportEnabled(boolean textExportEnabled)
163     {
164         this.textExportEnabled = textExportEnabled;
165     }
166
167     public boolean isHidden()
168     {
169         return hidden;
170     }
171
172     public void setHidden(boolean hidden)
173     {
174         this.hidden = hidden;
175     }
176
177     public int getDefaultExportType()
178     {
179         return defaultExportType;
180     }
181
182     public void setDefaultExportType(int defaultExportType)
183     {
184         this.defaultExportType = defaultExportType;
185     }
186 }
Popular Tags