KickJava   Java API By Example, From Geeks To Geeks.

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


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 java.math.BigDecimal JavaDoc;
19 import org.exolab.castor.xml.MarshalException;
20 import org.exolab.castor.xml.Marshaller;
21 import org.exolab.castor.xml.Unmarshaller;
22 import org.exolab.castor.xml.ValidationException;
23 import org.xml.sax.ContentHandler JavaDoc;
24
25 /**
26  * Class ReportSourceDefinition.
27  *
28  * @version $Revision$ $Date$
29  */

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

37     /**
38      * Field _id
39      */

40     private java.lang.String JavaDoc _id;
41
42     /**
43      * Field _cached
44      */

45     private boolean _cached;
46
47     /**
48      * keeps track of state for field: _cached
49      */

50     private boolean _has_cached;
51
52     /**
53      * Field _expiration
54      */

55     private java.math.BigDecimal JavaDoc _expiration;
56
57     /**
58      * Field _incrementalDimension
59      */

60     private java.lang.String JavaDoc _incrementalDimension;
61
62     /**
63      * Field _multilanguage
64      */

65     private boolean _multilanguage = false;
66
67     /**
68      * keeps track of state for field: _multilanguage
69      */

70     private boolean _has_multilanguage;
71
72     /**
73      * Field _maxRowsDimensionReference
74      */

75     private java.lang.String JavaDoc _maxRowsDimensionReference;
76
77     /**
78      * Field _maxRowCount
79      */

80     private int _maxRowCount;
81
82     /**
83      * keeps track of state for field: _maxRowCount
84      */

85     private boolean _has_maxRowCount;
86
87     /**
88      * Field _datawarehouseSaved
89      */

90     private boolean _datawarehouseSaved;
91
92     /**
93      * keeps track of state for field: _datawarehouseSaved
94      */

95     private boolean _has_datawarehouseSaved;
96
97     /**
98      * Field _dimensionSourceDefinitions
99      */

100     private com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions _dimensionSourceDefinitions;
101
102     /**
103      * Field _metricSourceDefinitions
104      */

105     private com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions _metricSourceDefinitions;
106
107     /**
108      * Field _filterDefinitions
109      */

110     private com.calipso.reportgenerator.reportdefinitions.FilterDefinitions _filterDefinitions;
111
112     /**
113      * Field _dataSourceDefinitions
114      */

115     private com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions _dataSourceDefinitions;
116
117     /**
118      * Field _parameterValues
119      */

120     private com.calipso.reportgenerator.reportdefinitions.ParameterValues _parameterValues;
121
122     /**
123      * Field _localizations
124      */

125     private com.calipso.reportgenerator.reportdefinitions.Localizations _localizations;
126
127
128       //----------------/
129
//- Constructors -/
130
//----------------/
131

132     public ReportSourceDefinition() {
133         super();
134     } //-- com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition()
135

136
137       //-----------/
138
//- Methods -/
139
//-----------/
140

141     /**
142      * Method deleteDatawarehouseSaved
143      */

144     public void deleteDatawarehouseSaved()
145     {
146         this._has_datawarehouseSaved= false;
147     } //-- void deleteDatawarehouseSaved()
148

149     /**
150      * Method deleteMaxRowCount
151      */

152     public void deleteMaxRowCount()
153     {
154         this._has_maxRowCount= false;
155     } //-- void deleteMaxRowCount()
156

157     /**
158      * Method deleteMultilanguage
159      */

160     public void deleteMultilanguage()
161     {
162         this._has_multilanguage= false;
163     } //-- void deleteMultilanguage()
164

165     /**
166      * Method getCachedReturns the value of field 'cached'.
167      *
168      * @return the value of field 'cached'.
169      */

170     public boolean getCached()
171     {
172         return this._cached;
173     } //-- boolean getCached()
174

175     /**
176      * Method getDataSourceDefinitionsReturns the value of field
177      * 'dataSourceDefinitions'.
178      *
179      * @return the value of field 'dataSourceDefinitions'.
180      */

181     public com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions getDataSourceDefinitions()
182     {
183         return this._dataSourceDefinitions;
184     } //-- com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions getDataSourceDefinitions()
185

186     /**
187      * Method getDatawarehouseSavedReturns the value of field
188      * 'datawarehouseSaved'.
189      *
190      * @return the value of field 'datawarehouseSaved'.
191      */

192     public boolean getDatawarehouseSaved()
193     {
194         return this._datawarehouseSaved;
195     } //-- boolean getDatawarehouseSaved()
196

197     /**
198      * Method getDimensionSourceDefinitionsReturns the value of
199      * field 'dimensionSourceDefinitions'.
200      *
201      * @return the value of field 'dimensionSourceDefinitions'.
202      */

203     public com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions getDimensionSourceDefinitions()
204     {
205         return this._dimensionSourceDefinitions;
206     } //-- com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions getDimensionSourceDefinitions()
207

208     /**
209      * Method getExpirationReturns the value of field 'expiration'.
210      *
211      * @return the value of field 'expiration'.
212      */

213     public java.math.BigDecimal JavaDoc getExpiration()
214     {
215         return this._expiration;
216     } //-- java.math.BigDecimal getExpiration()
217

218     /**
219      * Method getFilterDefinitionsReturns the value of field
220      * 'filterDefinitions'.
221      *
222      * @return the value of field 'filterDefinitions'.
223      */

224     public com.calipso.reportgenerator.reportdefinitions.FilterDefinitions getFilterDefinitions()
225     {
226         return this._filterDefinitions;
227     } //-- com.calipso.reportgenerator.reportdefinitions.FilterDefinitions getFilterDefinitions()
228

229     /**
230      * Method getIdReturns the value of field 'id'.
231      *
232      * @return the value of field 'id'.
233      */

234     public java.lang.String JavaDoc getId()
235     {
236         return this._id;
237     } //-- java.lang.String getId()
238

239     /**
240      * Method getIncrementalDimensionReturns the value of field
241      * 'incrementalDimension'.
242      *
243      * @return the value of field 'incrementalDimension'.
244      */

245     public java.lang.String JavaDoc getIncrementalDimension()
246     {
247         return this._incrementalDimension;
248     } //-- java.lang.String getIncrementalDimension()
249

250     /**
251      * Method getLocalizationsReturns the value of field
252      * 'localizations'.
253      *
254      * @return the value of field 'localizations'.
255      */

256     public com.calipso.reportgenerator.reportdefinitions.Localizations getLocalizations()
257     {
258         return this._localizations;
259     } //-- com.calipso.reportgenerator.reportdefinitions.Localizations getLocalizations()
260

261     /**
262      * Method getMaxRowCountReturns the value of field
263      * 'maxRowCount'.
264      *
265      * @return the value of field 'maxRowCount'.
266      */

267     public int getMaxRowCount()
268     {
269         return this._maxRowCount;
270     } //-- int getMaxRowCount()
271

272     /**
273      * Method getMaxRowsDimensionReferenceReturns the value of
274      * field 'maxRowsDimensionReference'.
275      *
276      * @return the value of field 'maxRowsDimensionReference'.
277      */

278     public java.lang.String JavaDoc getMaxRowsDimensionReference()
279     {
280         return this._maxRowsDimensionReference;
281     } //-- java.lang.String getMaxRowsDimensionReference()
282

283     /**
284      * Method getMetricSourceDefinitionsReturns the value of field
285      * 'metricSourceDefinitions'.
286      *
287      * @return the value of field 'metricSourceDefinitions'.
288      */

289     public com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions getMetricSourceDefinitions()
290     {
291         return this._metricSourceDefinitions;
292     } //-- com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions getMetricSourceDefinitions()
293

294     /**
295      * Method getMultilanguageReturns the value of field
296      * 'multilanguage'.
297      *
298      * @return the value of field 'multilanguage'.
299      */

300     public boolean getMultilanguage()
301     {
302         return this._multilanguage;
303     } //-- boolean getMultilanguage()
304

305     /**
306      * Method getParameterValuesReturns the value of field
307      * 'parameterValues'.
308      *
309      * @return the value of field 'parameterValues'.
310      */

311     public com.calipso.reportgenerator.reportdefinitions.ParameterValues getParameterValues()
312     {
313         return this._parameterValues;
314     } //-- com.calipso.reportgenerator.reportdefinitions.ParameterValues getParameterValues()
315

316     /**
317      * Method hasCached
318      */

319     public boolean hasCached()
320     {
321         return this._has_cached;
322     } //-- boolean hasCached()
323

324     /**
325      * Method hasDatawarehouseSaved
326      */

327     public boolean hasDatawarehouseSaved()
328     {
329         return this._has_datawarehouseSaved;
330     } //-- boolean hasDatawarehouseSaved()
331

332     /**
333      * Method hasMaxRowCount
334      */

335     public boolean hasMaxRowCount()
336     {
337         return this._has_maxRowCount;
338     } //-- boolean hasMaxRowCount()
339

340     /**
341      * Method hasMultilanguage
342      */

343     public boolean hasMultilanguage()
344     {
345         return this._has_multilanguage;
346     } //-- boolean hasMultilanguage()
347

348     /**
349      * Method isValid
350      */

351     public boolean isValid()
352     {
353         try {
354             validate();
355         }
356         catch (org.exolab.castor.xml.ValidationException vex) {
357             return false;
358         }
359         return true;
360     } //-- boolean isValid()
361

362     /**
363      * Method marshal
364      *
365      * @param out
366      */

367     public void marshal(java.io.Writer JavaDoc out)
368         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
369     {
370         
371         Marshaller.marshal(this, out);
372     } //-- void marshal(java.io.Writer)
373

374     /**
375      * Method marshal
376      *
377      * @param handler
378      */

379     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
380         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
381     {
382         
383         Marshaller.marshal(this, handler);
384     } //-- void marshal(org.xml.sax.ContentHandler)
385

386     /**
387      * Method setCachedSets the value of field 'cached'.
388      *
389      * @param cached the value of field 'cached'.
390      */

391     public void setCached(boolean cached)
392     {
393         this._cached = cached;
394         this._has_cached = true;
395     } //-- void setCached(boolean)
396

397     /**
398      * Method setDataSourceDefinitionsSets the value of field
399      * 'dataSourceDefinitions'.
400      *
401      * @param dataSourceDefinitions the value of field
402      * 'dataSourceDefinitions'.
403      */

404     public void setDataSourceDefinitions(com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions dataSourceDefinitions)
405     {
406         this._dataSourceDefinitions = dataSourceDefinitions;
407     } //-- void setDataSourceDefinitions(com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions)
408

409     /**
410      * Method setDatawarehouseSavedSets the value of field
411      * 'datawarehouseSaved'.
412      *
413      * @param datawarehouseSaved the value of field
414      * 'datawarehouseSaved'.
415      */

416     public void setDatawarehouseSaved(boolean datawarehouseSaved)
417     {
418         this._datawarehouseSaved = datawarehouseSaved;
419         this._has_datawarehouseSaved = true;
420     } //-- void setDatawarehouseSaved(boolean)
421

422     /**
423      * Method setDimensionSourceDefinitionsSets the value of field
424      * 'dimensionSourceDefinitions'.
425      *
426      * @param dimensionSourceDefinitions the value of field
427      * 'dimensionSourceDefinitions'.
428      */

429     public void setDimensionSourceDefinitions(com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions dimensionSourceDefinitions)
430     {
431         this._dimensionSourceDefinitions = dimensionSourceDefinitions;
432     } //-- void setDimensionSourceDefinitions(com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions)
433

434     /**
435      * Method setExpirationSets the value of field 'expiration'.
436      *
437      * @param expiration the value of field 'expiration'.
438      */

439     public void setExpiration(java.math.BigDecimal JavaDoc expiration)
440     {
441         this._expiration = expiration;
442     } //-- void setExpiration(java.math.BigDecimal)
443

444     /**
445      * Method setFilterDefinitionsSets the value of field
446      * 'filterDefinitions'.
447      *
448      * @param filterDefinitions the value of field
449      * 'filterDefinitions'.
450      */

451     public void setFilterDefinitions(com.calipso.reportgenerator.reportdefinitions.FilterDefinitions filterDefinitions)
452     {
453         this._filterDefinitions = filterDefinitions;
454     } //-- void setFilterDefinitions(com.calipso.reportgenerator.reportdefinitions.FilterDefinitions)
455

456     /**
457      * Method setIdSets the value of field 'id'.
458      *
459      * @param id the value of field 'id'.
460      */

461     public void setId(java.lang.String JavaDoc id)
462     {
463         this._id = id;
464     } //-- void setId(java.lang.String)
465

466     /**
467      * Method setIncrementalDimensionSets the value of field
468      * 'incrementalDimension'.
469      *
470      * @param incrementalDimension the value of field
471      * 'incrementalDimension'.
472      */

473     public void setIncrementalDimension(java.lang.String JavaDoc incrementalDimension)
474     {
475         this._incrementalDimension = incrementalDimension;
476     } //-- void setIncrementalDimension(java.lang.String)
477

478     /**
479      * Method setLocalizationsSets the value of field
480      * 'localizations'.
481      *
482      * @param localizations the value of field 'localizations'.
483      */

484     public void setLocalizations(com.calipso.reportgenerator.reportdefinitions.Localizations localizations)
485     {
486         this._localizations = localizations;
487     } //-- void setLocalizations(com.calipso.reportgenerator.reportdefinitions.Localizations)
488

489     /**
490      * Method setMaxRowCountSets the value of field 'maxRowCount'.
491      *
492      * @param maxRowCount the value of field 'maxRowCount'.
493      */

494     public void setMaxRowCount(int maxRowCount)
495     {
496         this._maxRowCount = maxRowCount;
497         this._has_maxRowCount = true;
498     } //-- void setMaxRowCount(int)
499

500     /**
501      * Method setMaxRowsDimensionReferenceSets the value of field
502      * 'maxRowsDimensionReference'.
503      *
504      * @param maxRowsDimensionReference the value of field
505      * 'maxRowsDimensionReference'.
506      */

507     public void setMaxRowsDimensionReference(java.lang.String JavaDoc maxRowsDimensionReference)
508     {
509         this._maxRowsDimensionReference = maxRowsDimensionReference;
510     } //-- void setMaxRowsDimensionReference(java.lang.String)
511

512     /**
513      * Method setMetricSourceDefinitionsSets the value of field
514      * 'metricSourceDefinitions'.
515      *
516      * @param metricSourceDefinitions the value of field
517      * 'metricSourceDefinitions'.
518      */

519     public void setMetricSourceDefinitions(com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions metricSourceDefinitions)
520     {
521         this._metricSourceDefinitions = metricSourceDefinitions;
522     } //-- void setMetricSourceDefinitions(com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions)
523

524     /**
525      * Method setMultilanguageSets the value of field
526      * 'multilanguage'.
527      *
528      * @param multilanguage the value of field 'multilanguage'.
529      */

530     public void setMultilanguage(boolean multilanguage)
531     {
532         this._multilanguage = multilanguage;
533         this._has_multilanguage = true;
534     } //-- void setMultilanguage(boolean)
535

536     /**
537      * Method setParameterValuesSets the value of field
538      * 'parameterValues'.
539      *
540      * @param parameterValues the value of field 'parameterValues'.
541      */

542     public void setParameterValues(com.calipso.reportgenerator.reportdefinitions.ParameterValues parameterValues)
543     {
544         this._parameterValues = parameterValues;
545     } //-- void setParameterValues(com.calipso.reportgenerator.reportdefinitions.ParameterValues)
546

547     /**
548      * Method unmarshal
549      *
550      * @param reader
551      */

552     public static com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition unmarshal(java.io.Reader JavaDoc reader)
553         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
554     {
555         return (com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition.class, reader);
556     } //-- com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition unmarshal(java.io.Reader)
557

558     /**
559      * Method validate
560      */

561     public void validate()
562         throws org.exolab.castor.xml.ValidationException
563     {
564         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
565         validator.validate(this);
566     } //-- void validate()
567

568 }
569
Popular Tags