KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > reportdefinitions > ReportView


1 /*
2  * This class was automatically generated with
3  * <a HREF="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
4  * Schema.
5  * $Id$
6  */

7
8 package com.calipso.reportgenerator.reportdefinitions;
9
10   //---------------------------------/
11
//- Imported classes and packages -/
12
//---------------------------------/
13

14 import java.io.IOException JavaDoc;
15 import java.io.Reader JavaDoc;
16 import java.io.Serializable JavaDoc;
17 import java.io.Writer JavaDoc;
18 import org.exolab.castor.xml.MarshalException;
19 import org.exolab.castor.xml.Marshaller;
20 import org.exolab.castor.xml.Unmarshaller;
21 import org.exolab.castor.xml.ValidationException;
22 import org.xml.sax.ContentHandler JavaDoc;
23
24 /**
25  * Class ReportView.
26  *
27  * @version $Revision$ $Date$
28  */

29 public class ReportView implements java.io.Serializable JavaDoc {
30
31
32       //--------------------------/
33
//- Class/Member Variables -/
34
//--------------------------/
35

36     /**
37      * Field _id
38      */

39     private java.lang.String JavaDoc _id;
40
41     /**
42      * Field _description
43      */

44     private java.lang.String JavaDoc _description;
45
46     /**
47      * Field _reportDefinitionId
48      */

49     private java.lang.String JavaDoc _reportDefinitionId;
50
51     /**
52      * Field _userID
53      */

54     private java.lang.String JavaDoc _userID;
55
56     /**
57      * Field _userName
58      */

59     private java.lang.String JavaDoc _userName;
60
61     /**
62      * Field _reportLayout
63      */

64     private java.lang.String JavaDoc _reportLayout;
65
66     /**
67      * Field _visibleTotals
68      */

69     private boolean _visibleTotals = true;
70
71     /**
72      * keeps track of state for field: _visibleTotals
73      */

74     private boolean _has_visibleTotals;
75
76     /**
77      * Field _default
78      */

79     private boolean _default = false;
80
81     /**
82      * keeps track of state for field: _default
83      */

84     private boolean _has_default;
85
86     /**
87      * Field _viewParameterValues
88      */

89     private com.calipso.reportgenerator.reportdefinitions.ViewParameterValues _viewParameterValues;
90
91     /**
92      * Field _dimensionProperties
93      */

94     private com.calipso.reportgenerator.reportdefinitions.DimensionProperties _dimensionProperties;
95
96     /**
97      * Field _metricProperties
98      */

99     private com.calipso.reportgenerator.reportdefinitions.MetricProperties _metricProperties;
100
101     /**
102      * Field _lightBoxer
103      */

104     private com.calipso.reportgenerator.reportdefinitions.LightBoxer _lightBoxer;
105
106
107       //----------------/
108
//- Constructors -/
109
//----------------/
110

111     public ReportView() {
112         super();
113     } //-- com.calipso.reportgenerator.reportdefinitions.ReportView()
114

115
116       //-----------/
117
//- Methods -/
118
//-----------/
119

120     /**
121      * Method deleteDefault
122      */

123     public void deleteDefault()
124     {
125         this._has_default= false;
126     } //-- void deleteDefault()
127

128     /**
129      * Method deleteVisibleTotals
130      */

131     public void deleteVisibleTotals()
132     {
133         this._has_visibleTotals= false;
134     } //-- void deleteVisibleTotals()
135

136     /**
137      * Method getDefaultReturns the value of field 'default'.
138      *
139      * @return the value of field 'default'.
140      */

141     public boolean getDefault()
142     {
143         return this._default;
144     } //-- boolean getDefault()
145

146     /**
147      * Method getDescriptionReturns the value of field
148      * 'description'.
149      *
150      * @return the value of field 'description'.
151      */

152     public java.lang.String JavaDoc getDescription()
153     {
154         return this._description;
155     } //-- java.lang.String getDescription()
156

157     /**
158      * Method getDimensionPropertiesReturns the value of field
159      * 'dimensionProperties'.
160      *
161      * @return the value of field 'dimensionProperties'.
162      */

163     public com.calipso.reportgenerator.reportdefinitions.DimensionProperties getDimensionProperties()
164     {
165         return this._dimensionProperties;
166     } //-- com.calipso.reportgenerator.reportdefinitions.DimensionProperties getDimensionProperties()
167

168     /**
169      * Method getIdReturns the value of field 'id'.
170      *
171      * @return the value of field 'id'.
172      */

173     public java.lang.String JavaDoc getId()
174     {
175         return this._id;
176     } //-- java.lang.String getId()
177

178     /**
179      * Method getLightBoxerReturns the value of field 'lightBoxer'.
180      *
181      * @return the value of field 'lightBoxer'.
182      */

183     public com.calipso.reportgenerator.reportdefinitions.LightBoxer getLightBoxer()
184     {
185         return this._lightBoxer;
186     } //-- com.calipso.reportgenerator.reportdefinitions.LightBoxer getLightBoxer()
187

188     /**
189      * Method getMetricPropertiesReturns the value of field
190      * 'metricProperties'.
191      *
192      * @return the value of field 'metricProperties'.
193      */

194     public com.calipso.reportgenerator.reportdefinitions.MetricProperties getMetricProperties()
195     {
196         return this._metricProperties;
197     } //-- com.calipso.reportgenerator.reportdefinitions.MetricProperties getMetricProperties()
198

199     /**
200      * Method getReportDefinitionIdReturns the value of field
201      * 'reportDefinitionId'.
202      *
203      * @return the value of field 'reportDefinitionId'.
204      */

205     public java.lang.String JavaDoc getReportDefinitionId()
206     {
207         return this._reportDefinitionId;
208     } //-- java.lang.String getReportDefinitionId()
209

210     /**
211      * Method getReportLayoutReturns the value of field
212      * 'reportLayout'.
213      *
214      * @return the value of field 'reportLayout'.
215      */

216     public java.lang.String JavaDoc getReportLayout()
217     {
218         return this._reportLayout;
219     } //-- java.lang.String getReportLayout()
220

221     /**
222      * Method getUserIDReturns the value of field 'userID'.
223      *
224      * @return the value of field 'userID'.
225      */

226     public java.lang.String JavaDoc getUserID()
227     {
228         return this._userID;
229     } //-- java.lang.String getUserID()
230

231     /**
232      * Method getUserNameReturns the value of field 'userName'.
233      *
234      * @return the value of field 'userName'.
235      */

236     public java.lang.String JavaDoc getUserName()
237     {
238         return this._userName;
239     } //-- java.lang.String getUserName()
240

241     /**
242      * Method getViewParameterValuesReturns the value of field
243      * 'viewParameterValues'.
244      *
245      * @return the value of field 'viewParameterValues'.
246      */

247     public com.calipso.reportgenerator.reportdefinitions.ViewParameterValues getViewParameterValues()
248     {
249         return this._viewParameterValues;
250     } //-- com.calipso.reportgenerator.reportdefinitions.ViewParameterValues getViewParameterValues()
251

252     /**
253      * Method getVisibleTotalsReturns the value of field
254      * 'visibleTotals'.
255      *
256      * @return the value of field 'visibleTotals'.
257      */

258     public boolean getVisibleTotals()
259     {
260         return this._visibleTotals;
261     } //-- boolean getVisibleTotals()
262

263     /**
264      * Method hasDefault
265      */

266     public boolean hasDefault()
267     {
268         return this._has_default;
269     } //-- boolean hasDefault()
270

271     /**
272      * Method hasVisibleTotals
273      */

274     public boolean hasVisibleTotals()
275     {
276         return this._has_visibleTotals;
277     } //-- boolean hasVisibleTotals()
278

279     /**
280      * Method isValid
281      */

282     public boolean isValid()
283     {
284         try {
285             validate();
286         }
287         catch (org.exolab.castor.xml.ValidationException vex) {
288             return false;
289         }
290         return true;
291     } //-- boolean isValid()
292

293     /**
294      * Method marshal
295      *
296      * @param out
297      */

298     public void marshal(java.io.Writer JavaDoc out)
299         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
300     {
301         
302         Marshaller.marshal(this, out);
303     } //-- void marshal(java.io.Writer)
304

305     /**
306      * Method marshal
307      *
308      * @param handler
309      */

310     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
311         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
312     {
313         
314         Marshaller.marshal(this, handler);
315     } //-- void marshal(org.xml.sax.ContentHandler)
316

317     /**
318      * Method setDefaultSets the value of field 'default'.
319      *
320      * @param _default
321      * @param default the value of field 'default'.
322      */

323     public void setDefault(boolean _default)
324     {
325         this._default = _default;
326         this._has_default = true;
327     } //-- void setDefault(boolean)
328

329     /**
330      * Method setDescriptionSets the value of field 'description'.
331      *
332      * @param description the value of field 'description'.
333      */

334     public void setDescription(java.lang.String JavaDoc description)
335     {
336         this._description = description;
337     } //-- void setDescription(java.lang.String)
338

339     /**
340      * Method setDimensionPropertiesSets the value of field
341      * 'dimensionProperties'.
342      *
343      * @param dimensionProperties the value of field
344      * 'dimensionProperties'.
345      */

346     public void setDimensionProperties(com.calipso.reportgenerator.reportdefinitions.DimensionProperties dimensionProperties)
347     {
348         this._dimensionProperties = dimensionProperties;
349     } //-- void setDimensionProperties(com.calipso.reportgenerator.reportdefinitions.DimensionProperties)
350

351     /**
352      * Method setIdSets the value of field 'id'.
353      *
354      * @param id the value of field 'id'.
355      */

356     public void setId(java.lang.String JavaDoc id)
357     {
358         this._id = id;
359     } //-- void setId(java.lang.String)
360

361     /**
362      * Method setLightBoxerSets the value of field 'lightBoxer'.
363      *
364      * @param lightBoxer the value of field 'lightBoxer'.
365      */

366     public void setLightBoxer(com.calipso.reportgenerator.reportdefinitions.LightBoxer lightBoxer)
367     {
368         this._lightBoxer = lightBoxer;
369     } //-- void setLightBoxer(com.calipso.reportgenerator.reportdefinitions.LightBoxer)
370

371     /**
372      * Method setMetricPropertiesSets the value of field
373      * 'metricProperties'.
374      *
375      * @param metricProperties the value of field 'metricProperties'
376      */

377     public void setMetricProperties(com.calipso.reportgenerator.reportdefinitions.MetricProperties metricProperties)
378     {
379         this._metricProperties = metricProperties;
380     } //-- void setMetricProperties(com.calipso.reportgenerator.reportdefinitions.MetricProperties)
381

382     /**
383      * Method setReportDefinitionIdSets the value of field
384      * 'reportDefinitionId'.
385      *
386      * @param reportDefinitionId the value of field
387      * 'reportDefinitionId'.
388      */

389     public void setReportDefinitionId(java.lang.String JavaDoc reportDefinitionId)
390     {
391         this._reportDefinitionId = reportDefinitionId;
392     } //-- void setReportDefinitionId(java.lang.String)
393

394     /**
395      * Method setReportLayoutSets the value of field
396      * 'reportLayout'.
397      *
398      * @param reportLayout the value of field 'reportLayout'.
399      */

400     public void setReportLayout(java.lang.String JavaDoc reportLayout)
401     {
402         this._reportLayout = reportLayout;
403     } //-- void setReportLayout(java.lang.String)
404

405     /**
406      * Method setUserIDSets the value of field 'userID'.
407      *
408      * @param userID the value of field 'userID'.
409      */

410     public void setUserID(java.lang.String JavaDoc userID)
411     {
412         this._userID = userID;
413     } //-- void setUserID(java.lang.String)
414

415     /**
416      * Method setUserNameSets the value of field 'userName'.
417      *
418      * @param userName the value of field 'userName'.
419      */

420     public void setUserName(java.lang.String JavaDoc userName)
421     {
422         this._userName = userName;
423     } //-- void setUserName(java.lang.String)
424

425     /**
426      * Method setViewParameterValuesSets the value of field
427      * 'viewParameterValues'.
428      *
429      * @param viewParameterValues the value of field
430      * 'viewParameterValues'.
431      */

432     public void setViewParameterValues(com.calipso.reportgenerator.reportdefinitions.ViewParameterValues viewParameterValues)
433     {
434         this._viewParameterValues = viewParameterValues;
435     } //-- void setViewParameterValues(com.calipso.reportgenerator.reportdefinitions.ViewParameterValues)
436

437     /**
438      * Method setVisibleTotalsSets the value of field
439      * 'visibleTotals'.
440      *
441      * @param visibleTotals the value of field 'visibleTotals'.
442      */

443     public void setVisibleTotals(boolean visibleTotals)
444     {
445         this._visibleTotals = visibleTotals;
446         this._has_visibleTotals = true;
447     } //-- void setVisibleTotals(boolean)
448

449     /**
450      * Method unmarshal
451      *
452      * @param reader
453      */

454     public static com.calipso.reportgenerator.reportdefinitions.ReportView unmarshal(java.io.Reader JavaDoc reader)
455         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
456     {
457         return (com.calipso.reportgenerator.reportdefinitions.ReportView) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.ReportView.class, reader);
458     } //-- com.calipso.reportgenerator.reportdefinitions.ReportView unmarshal(java.io.Reader)
459

460     /**
461      * Method validate
462      */

463     public void validate()
464         throws org.exolab.castor.xml.ValidationException
465     {
466         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
467         validator.validate(this);
468     } //-- void validate()
469

470 }
471
Popular Tags