001: /*
002: * This class was automatically generated with
003: * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
004: * Schema.
005: * $Id$
006: */
007:
008: package com.calipso.reportgenerator.reportdefinitions;
009:
010: //---------------------------------/
011: //- Imported classes and packages -/
012: //---------------------------------/
013:
014: import java.io.IOException;
015: import java.io.Reader;
016: import java.io.Serializable;
017: import java.io.Writer;
018: import java.math.BigDecimal;
019: import org.exolab.castor.xml.MarshalException;
020: import org.exolab.castor.xml.Marshaller;
021: import org.exolab.castor.xml.Unmarshaller;
022: import org.exolab.castor.xml.ValidationException;
023: import org.xml.sax.ContentHandler;
024:
025: /**
026: * Class ReportSourceDefinition.
027: *
028: * @version $Revision$ $Date$
029: */
030: public class ReportSourceDefinition implements java.io.Serializable {
031:
032: //--------------------------/
033: //- Class/Member Variables -/
034: //--------------------------/
035:
036: /**
037: * Field _id
038: */
039: private java.lang.String _id;
040:
041: /**
042: * Field _cached
043: */
044: private boolean _cached;
045:
046: /**
047: * keeps track of state for field: _cached
048: */
049: private boolean _has_cached;
050:
051: /**
052: * Field _expiration
053: */
054: private java.math.BigDecimal _expiration;
055:
056: /**
057: * Field _incrementalDimension
058: */
059: private java.lang.String _incrementalDimension;
060:
061: /**
062: * Field _multilanguage
063: */
064: private boolean _multilanguage = false;
065:
066: /**
067: * keeps track of state for field: _multilanguage
068: */
069: private boolean _has_multilanguage;
070:
071: /**
072: * Field _maxRowsDimensionReference
073: */
074: private java.lang.String _maxRowsDimensionReference;
075:
076: /**
077: * Field _maxRowCount
078: */
079: private int _maxRowCount;
080:
081: /**
082: * keeps track of state for field: _maxRowCount
083: */
084: private boolean _has_maxRowCount;
085:
086: /**
087: * Field _datawarehouseSaved
088: */
089: private boolean _datawarehouseSaved;
090:
091: /**
092: * keeps track of state for field: _datawarehouseSaved
093: */
094: private boolean _has_datawarehouseSaved;
095:
096: /**
097: * Field _dimensionSourceDefinitions
098: */
099: private com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions _dimensionSourceDefinitions;
100:
101: /**
102: * Field _metricSourceDefinitions
103: */
104: private com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions _metricSourceDefinitions;
105:
106: /**
107: * Field _filterDefinitions
108: */
109: private com.calipso.reportgenerator.reportdefinitions.FilterDefinitions _filterDefinitions;
110:
111: /**
112: * Field _dataSourceDefinitions
113: */
114: private com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions _dataSourceDefinitions;
115:
116: /**
117: * Field _parameterValues
118: */
119: private com.calipso.reportgenerator.reportdefinitions.ParameterValues _parameterValues;
120:
121: /**
122: * Field _localizations
123: */
124: private com.calipso.reportgenerator.reportdefinitions.Localizations _localizations;
125:
126: //----------------/
127: //- Constructors -/
128: //----------------/
129:
130: public ReportSourceDefinition() {
131: super ();
132: } //-- com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition()
133:
134: //-----------/
135: //- Methods -/
136: //-----------/
137:
138: /**
139: * Method deleteDatawarehouseSaved
140: */
141: public void deleteDatawarehouseSaved() {
142: this ._has_datawarehouseSaved = false;
143: } //-- void deleteDatawarehouseSaved()
144:
145: /**
146: * Method deleteMaxRowCount
147: */
148: public void deleteMaxRowCount() {
149: this ._has_maxRowCount = false;
150: } //-- void deleteMaxRowCount()
151:
152: /**
153: * Method deleteMultilanguage
154: */
155: public void deleteMultilanguage() {
156: this ._has_multilanguage = false;
157: } //-- void deleteMultilanguage()
158:
159: /**
160: * Method getCachedReturns the value of field 'cached'.
161: *
162: * @return the value of field 'cached'.
163: */
164: public boolean getCached() {
165: return this ._cached;
166: } //-- boolean getCached()
167:
168: /**
169: * Method getDataSourceDefinitionsReturns the value of field
170: * 'dataSourceDefinitions'.
171: *
172: * @return the value of field 'dataSourceDefinitions'.
173: */
174: public com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions getDataSourceDefinitions() {
175: return this ._dataSourceDefinitions;
176: } //-- com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions getDataSourceDefinitions()
177:
178: /**
179: * Method getDatawarehouseSavedReturns the value of field
180: * 'datawarehouseSaved'.
181: *
182: * @return the value of field 'datawarehouseSaved'.
183: */
184: public boolean getDatawarehouseSaved() {
185: return this ._datawarehouseSaved;
186: } //-- boolean getDatawarehouseSaved()
187:
188: /**
189: * Method getDimensionSourceDefinitionsReturns the value of
190: * field 'dimensionSourceDefinitions'.
191: *
192: * @return the value of field 'dimensionSourceDefinitions'.
193: */
194: public com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions getDimensionSourceDefinitions() {
195: return this ._dimensionSourceDefinitions;
196: } //-- com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions getDimensionSourceDefinitions()
197:
198: /**
199: * Method getExpirationReturns the value of field 'expiration'.
200: *
201: * @return the value of field 'expiration'.
202: */
203: public java.math.BigDecimal getExpiration() {
204: return this ._expiration;
205: } //-- java.math.BigDecimal getExpiration()
206:
207: /**
208: * Method getFilterDefinitionsReturns the value of field
209: * 'filterDefinitions'.
210: *
211: * @return the value of field 'filterDefinitions'.
212: */
213: public com.calipso.reportgenerator.reportdefinitions.FilterDefinitions getFilterDefinitions() {
214: return this ._filterDefinitions;
215: } //-- com.calipso.reportgenerator.reportdefinitions.FilterDefinitions getFilterDefinitions()
216:
217: /**
218: * Method getIdReturns the value of field 'id'.
219: *
220: * @return the value of field 'id'.
221: */
222: public java.lang.String getId() {
223: return this ._id;
224: } //-- java.lang.String getId()
225:
226: /**
227: * Method getIncrementalDimensionReturns the value of field
228: * 'incrementalDimension'.
229: *
230: * @return the value of field 'incrementalDimension'.
231: */
232: public java.lang.String getIncrementalDimension() {
233: return this ._incrementalDimension;
234: } //-- java.lang.String getIncrementalDimension()
235:
236: /**
237: * Method getLocalizationsReturns the value of field
238: * 'localizations'.
239: *
240: * @return the value of field 'localizations'.
241: */
242: public com.calipso.reportgenerator.reportdefinitions.Localizations getLocalizations() {
243: return this ._localizations;
244: } //-- com.calipso.reportgenerator.reportdefinitions.Localizations getLocalizations()
245:
246: /**
247: * Method getMaxRowCountReturns the value of field
248: * 'maxRowCount'.
249: *
250: * @return the value of field 'maxRowCount'.
251: */
252: public int getMaxRowCount() {
253: return this ._maxRowCount;
254: } //-- int getMaxRowCount()
255:
256: /**
257: * Method getMaxRowsDimensionReferenceReturns the value of
258: * field 'maxRowsDimensionReference'.
259: *
260: * @return the value of field 'maxRowsDimensionReference'.
261: */
262: public java.lang.String getMaxRowsDimensionReference() {
263: return this ._maxRowsDimensionReference;
264: } //-- java.lang.String getMaxRowsDimensionReference()
265:
266: /**
267: * Method getMetricSourceDefinitionsReturns the value of field
268: * 'metricSourceDefinitions'.
269: *
270: * @return the value of field 'metricSourceDefinitions'.
271: */
272: public com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions getMetricSourceDefinitions() {
273: return this ._metricSourceDefinitions;
274: } //-- com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions getMetricSourceDefinitions()
275:
276: /**
277: * Method getMultilanguageReturns the value of field
278: * 'multilanguage'.
279: *
280: * @return the value of field 'multilanguage'.
281: */
282: public boolean getMultilanguage() {
283: return this ._multilanguage;
284: } //-- boolean getMultilanguage()
285:
286: /**
287: * Method getParameterValuesReturns the value of field
288: * 'parameterValues'.
289: *
290: * @return the value of field 'parameterValues'.
291: */
292: public com.calipso.reportgenerator.reportdefinitions.ParameterValues getParameterValues() {
293: return this ._parameterValues;
294: } //-- com.calipso.reportgenerator.reportdefinitions.ParameterValues getParameterValues()
295:
296: /**
297: * Method hasCached
298: */
299: public boolean hasCached() {
300: return this ._has_cached;
301: } //-- boolean hasCached()
302:
303: /**
304: * Method hasDatawarehouseSaved
305: */
306: public boolean hasDatawarehouseSaved() {
307: return this ._has_datawarehouseSaved;
308: } //-- boolean hasDatawarehouseSaved()
309:
310: /**
311: * Method hasMaxRowCount
312: */
313: public boolean hasMaxRowCount() {
314: return this ._has_maxRowCount;
315: } //-- boolean hasMaxRowCount()
316:
317: /**
318: * Method hasMultilanguage
319: */
320: public boolean hasMultilanguage() {
321: return this ._has_multilanguage;
322: } //-- boolean hasMultilanguage()
323:
324: /**
325: * Method isValid
326: */
327: public boolean isValid() {
328: try {
329: validate();
330: } catch (org.exolab.castor.xml.ValidationException vex) {
331: return false;
332: }
333: return true;
334: } //-- boolean isValid()
335:
336: /**
337: * Method marshal
338: *
339: * @param out
340: */
341: public void marshal(java.io.Writer out)
342: throws org.exolab.castor.xml.MarshalException,
343: org.exolab.castor.xml.ValidationException {
344:
345: Marshaller.marshal(this , out);
346: } //-- void marshal(java.io.Writer)
347:
348: /**
349: * Method marshal
350: *
351: * @param handler
352: */
353: public void marshal(org.xml.sax.ContentHandler handler)
354: throws java.io.IOException,
355: org.exolab.castor.xml.MarshalException,
356: org.exolab.castor.xml.ValidationException {
357:
358: Marshaller.marshal(this , handler);
359: } //-- void marshal(org.xml.sax.ContentHandler)
360:
361: /**
362: * Method setCachedSets the value of field 'cached'.
363: *
364: * @param cached the value of field 'cached'.
365: */
366: public void setCached(boolean cached) {
367: this ._cached = cached;
368: this ._has_cached = true;
369: } //-- void setCached(boolean)
370:
371: /**
372: * Method setDataSourceDefinitionsSets the value of field
373: * 'dataSourceDefinitions'.
374: *
375: * @param dataSourceDefinitions the value of field
376: * 'dataSourceDefinitions'.
377: */
378: public void setDataSourceDefinitions(
379: com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions dataSourceDefinitions) {
380: this ._dataSourceDefinitions = dataSourceDefinitions;
381: } //-- void setDataSourceDefinitions(com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions)
382:
383: /**
384: * Method setDatawarehouseSavedSets the value of field
385: * 'datawarehouseSaved'.
386: *
387: * @param datawarehouseSaved the value of field
388: * 'datawarehouseSaved'.
389: */
390: public void setDatawarehouseSaved(boolean datawarehouseSaved) {
391: this ._datawarehouseSaved = datawarehouseSaved;
392: this ._has_datawarehouseSaved = true;
393: } //-- void setDatawarehouseSaved(boolean)
394:
395: /**
396: * Method setDimensionSourceDefinitionsSets the value of field
397: * 'dimensionSourceDefinitions'.
398: *
399: * @param dimensionSourceDefinitions the value of field
400: * 'dimensionSourceDefinitions'.
401: */
402: public void setDimensionSourceDefinitions(
403: com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions dimensionSourceDefinitions) {
404: this ._dimensionSourceDefinitions = dimensionSourceDefinitions;
405: } //-- void setDimensionSourceDefinitions(com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions)
406:
407: /**
408: * Method setExpirationSets the value of field 'expiration'.
409: *
410: * @param expiration the value of field 'expiration'.
411: */
412: public void setExpiration(java.math.BigDecimal expiration) {
413: this ._expiration = expiration;
414: } //-- void setExpiration(java.math.BigDecimal)
415:
416: /**
417: * Method setFilterDefinitionsSets the value of field
418: * 'filterDefinitions'.
419: *
420: * @param filterDefinitions the value of field
421: * 'filterDefinitions'.
422: */
423: public void setFilterDefinitions(
424: com.calipso.reportgenerator.reportdefinitions.FilterDefinitions filterDefinitions) {
425: this ._filterDefinitions = filterDefinitions;
426: } //-- void setFilterDefinitions(com.calipso.reportgenerator.reportdefinitions.FilterDefinitions)
427:
428: /**
429: * Method setIdSets the value of field 'id'.
430: *
431: * @param id the value of field 'id'.
432: */
433: public void setId(java.lang.String id) {
434: this ._id = id;
435: } //-- void setId(java.lang.String)
436:
437: /**
438: * Method setIncrementalDimensionSets the value of field
439: * 'incrementalDimension'.
440: *
441: * @param incrementalDimension the value of field
442: * 'incrementalDimension'.
443: */
444: public void setIncrementalDimension(
445: java.lang.String incrementalDimension) {
446: this ._incrementalDimension = incrementalDimension;
447: } //-- void setIncrementalDimension(java.lang.String)
448:
449: /**
450: * Method setLocalizationsSets the value of field
451: * 'localizations'.
452: *
453: * @param localizations the value of field 'localizations'.
454: */
455: public void setLocalizations(
456: com.calipso.reportgenerator.reportdefinitions.Localizations localizations) {
457: this ._localizations = localizations;
458: } //-- void setLocalizations(com.calipso.reportgenerator.reportdefinitions.Localizations)
459:
460: /**
461: * Method setMaxRowCountSets the value of field 'maxRowCount'.
462: *
463: * @param maxRowCount the value of field 'maxRowCount'.
464: */
465: public void setMaxRowCount(int maxRowCount) {
466: this ._maxRowCount = maxRowCount;
467: this ._has_maxRowCount = true;
468: } //-- void setMaxRowCount(int)
469:
470: /**
471: * Method setMaxRowsDimensionReferenceSets the value of field
472: * 'maxRowsDimensionReference'.
473: *
474: * @param maxRowsDimensionReference the value of field
475: * 'maxRowsDimensionReference'.
476: */
477: public void setMaxRowsDimensionReference(
478: java.lang.String maxRowsDimensionReference) {
479: this ._maxRowsDimensionReference = maxRowsDimensionReference;
480: } //-- void setMaxRowsDimensionReference(java.lang.String)
481:
482: /**
483: * Method setMetricSourceDefinitionsSets the value of field
484: * 'metricSourceDefinitions'.
485: *
486: * @param metricSourceDefinitions the value of field
487: * 'metricSourceDefinitions'.
488: */
489: public void setMetricSourceDefinitions(
490: com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions metricSourceDefinitions) {
491: this ._metricSourceDefinitions = metricSourceDefinitions;
492: } //-- void setMetricSourceDefinitions(com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions)
493:
494: /**
495: * Method setMultilanguageSets the value of field
496: * 'multilanguage'.
497: *
498: * @param multilanguage the value of field 'multilanguage'.
499: */
500: public void setMultilanguage(boolean multilanguage) {
501: this ._multilanguage = multilanguage;
502: this ._has_multilanguage = true;
503: } //-- void setMultilanguage(boolean)
504:
505: /**
506: * Method setParameterValuesSets the value of field
507: * 'parameterValues'.
508: *
509: * @param parameterValues the value of field 'parameterValues'.
510: */
511: public void setParameterValues(
512: com.calipso.reportgenerator.reportdefinitions.ParameterValues parameterValues) {
513: this ._parameterValues = parameterValues;
514: } //-- void setParameterValues(com.calipso.reportgenerator.reportdefinitions.ParameterValues)
515:
516: /**
517: * Method unmarshal
518: *
519: * @param reader
520: */
521: public static com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition unmarshal(
522: java.io.Reader reader)
523: throws org.exolab.castor.xml.MarshalException,
524: org.exolab.castor.xml.ValidationException {
525: return (com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition) Unmarshaller
526: .unmarshal(
527: com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition.class,
528: reader);
529: } //-- com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition unmarshal(java.io.Reader)
530:
531: /**
532: * Method validate
533: */
534: public void validate()
535: throws org.exolab.castor.xml.ValidationException {
536: org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
537: validator.validate(this );
538: } //-- void validate()
539:
540: }
|