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 com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType;
015: import java.io.IOException;
016: import java.io.Reader;
017: import java.io.Serializable;
018: import java.io.Writer;
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 ReportDefinition.
027: *
028: * @version $Revision$ $Date$
029: */
030: public class ReportDefinition 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 _description
043: */
044: private java.lang.String _description;
045:
046: /**
047: * Field _reportSource
048: */
049: private java.lang.String _reportSource;
050:
051: /**
052: * Field _entity
053: */
054: private java.lang.String _entity;
055:
056: /**
057: * Field _isTransient
058: */
059: private boolean _isTransient;
060:
061: /**
062: * keeps track of state for field: _isTransient
063: */
064: private boolean _has_isTransient;
065:
066: /**
067: * Field _infoPage
068: */
069: private java.lang.String _infoPage;
070:
071: /**
072: * Field _reportType
073: */
074: private com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType _reportType;
075:
076: /**
077: * Field _title
078: */
079: private java.lang.String _title;
080:
081: /**
082: * Field _pageHeding
083: */
084: private java.lang.String _pageHeding;
085:
086: /**
087: * Field _pageFooter
088: */
089: private java.lang.String _pageFooter;
090:
091: /**
092: * Field _multilanguage
093: */
094: private boolean _multilanguage = false;
095:
096: /**
097: * keeps track of state for field: _multilanguage
098: */
099: private boolean _has_multilanguage;
100:
101: /**
102: * Field _maxRowsDimensionReference
103: */
104: private java.lang.String _maxRowsDimensionReference;
105:
106: /**
107: * Field _maxRowCount
108: */
109: private int _maxRowCount;
110:
111: /**
112: * keeps track of state for field: _maxRowCount
113: */
114: private boolean _has_maxRowCount;
115:
116: /**
117: * Field _visibleTotals
118: */
119: private boolean _visibleTotals = true;
120:
121: /**
122: * keeps track of state for field: _visibleTotals
123: */
124: private boolean _has_visibleTotals;
125:
126: /**
127: * Field _layoutDesign
128: */
129: private java.lang.String _layoutDesign;
130:
131: /**
132: * Field _roles
133: */
134: private com.calipso.reportgenerator.reportdefinitions.Roles _roles;
135:
136: /**
137: * Field _dimensionDefinitions
138: */
139: private com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions _dimensionDefinitions;
140:
141: /**
142: * Field _metricDefinitions
143: */
144: private com.calipso.reportgenerator.reportdefinitions.MetricDefinitions _metricDefinitions;
145:
146: /**
147: * Field _actionDefinitions
148: */
149: private com.calipso.reportgenerator.reportdefinitions.ActionDefinitions _actionDefinitions;
150:
151: /**
152: * Field _filterDefinitions
153: */
154: private com.calipso.reportgenerator.reportdefinitions.FilterDefinitions _filterDefinitions;
155:
156: /**
157: * Field _parameterValues
158: */
159: private com.calipso.reportgenerator.reportdefinitions.ParameterValues _parameterValues;
160:
161: /**
162: * Field _localizations
163: */
164: private com.calipso.reportgenerator.reportdefinitions.Localizations _localizations;
165:
166: /**
167: * Field _drillDownDefinitions
168: */
169: private com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions _drillDownDefinitions;
170:
171: //----------------/
172: //- Constructors -/
173: //----------------/
174:
175: public ReportDefinition() {
176: super ();
177: } //-- com.calipso.reportgenerator.reportdefinitions.ReportDefinition()
178:
179: //-----------/
180: //- Methods -/
181: //-----------/
182:
183: /**
184: * Method deleteMaxRowCount
185: */
186: public void deleteMaxRowCount() {
187: this ._has_maxRowCount = false;
188: } //-- void deleteMaxRowCount()
189:
190: /**
191: * Method deleteMultilanguage
192: */
193: public void deleteMultilanguage() {
194: this ._has_multilanguage = false;
195: } //-- void deleteMultilanguage()
196:
197: /**
198: * Method deleteVisibleTotals
199: */
200: public void deleteVisibleTotals() {
201: this ._has_visibleTotals = false;
202: } //-- void deleteVisibleTotals()
203:
204: /**
205: * Method getActionDefinitionsReturns the value of field
206: * 'actionDefinitions'.
207: *
208: * @return the value of field 'actionDefinitions'.
209: */
210: public com.calipso.reportgenerator.reportdefinitions.ActionDefinitions getActionDefinitions() {
211: return this ._actionDefinitions;
212: } //-- com.calipso.reportgenerator.reportdefinitions.ActionDefinitions getActionDefinitions()
213:
214: /**
215: * Method getDescriptionReturns the value of field
216: * 'description'.
217: *
218: * @return the value of field 'description'.
219: */
220: public java.lang.String getDescription() {
221: return this ._description;
222: } //-- java.lang.String getDescription()
223:
224: /**
225: * Method getDimensionDefinitionsReturns the value of field
226: * 'dimensionDefinitions'.
227: *
228: * @return the value of field 'dimensionDefinitions'.
229: */
230: public com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions getDimensionDefinitions() {
231: return this ._dimensionDefinitions;
232: } //-- com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions getDimensionDefinitions()
233:
234: /**
235: * Method getDrillDownDefinitionsReturns the value of field
236: * 'drillDownDefinitions'.
237: *
238: * @return the value of field 'drillDownDefinitions'.
239: */
240: public com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions getDrillDownDefinitions() {
241: return this ._drillDownDefinitions;
242: } //-- com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions getDrillDownDefinitions()
243:
244: /**
245: * Method getEntityReturns the value of field 'entity'.
246: *
247: * @return the value of field 'entity'.
248: */
249: public java.lang.String getEntity() {
250: return this ._entity;
251: } //-- java.lang.String getEntity()
252:
253: /**
254: * Method getFilterDefinitionsReturns the value of field
255: * 'filterDefinitions'.
256: *
257: * @return the value of field 'filterDefinitions'.
258: */
259: public com.calipso.reportgenerator.reportdefinitions.FilterDefinitions getFilterDefinitions() {
260: return this ._filterDefinitions;
261: } //-- com.calipso.reportgenerator.reportdefinitions.FilterDefinitions getFilterDefinitions()
262:
263: /**
264: * Method getIdReturns the value of field 'id'.
265: *
266: * @return the value of field 'id'.
267: */
268: public java.lang.String getId() {
269: return this ._id;
270: } //-- java.lang.String getId()
271:
272: /**
273: * Method getInfoPageReturns the value of field 'infoPage'.
274: *
275: * @return the value of field 'infoPage'.
276: */
277: public java.lang.String getInfoPage() {
278: return this ._infoPage;
279: } //-- java.lang.String getInfoPage()
280:
281: /**
282: * Method getIsTransientReturns the value of field
283: * 'isTransient'.
284: *
285: * @return the value of field 'isTransient'.
286: */
287: public boolean getIsTransient() {
288: return this ._isTransient;
289: } //-- boolean getIsTransient()
290:
291: /**
292: * Method getLayoutDesignReturns the value of field
293: * 'layoutDesign'.
294: *
295: * @return the value of field 'layoutDesign'.
296: */
297: public java.lang.String getLayoutDesign() {
298: return this ._layoutDesign;
299: } //-- java.lang.String getLayoutDesign()
300:
301: /**
302: * Method getLocalizationsReturns the value of field
303: * 'localizations'.
304: *
305: * @return the value of field 'localizations'.
306: */
307: public com.calipso.reportgenerator.reportdefinitions.Localizations getLocalizations() {
308: return this ._localizations;
309: } //-- com.calipso.reportgenerator.reportdefinitions.Localizations getLocalizations()
310:
311: /**
312: * Method getMaxRowCountReturns the value of field
313: * 'maxRowCount'.
314: *
315: * @return the value of field 'maxRowCount'.
316: */
317: public int getMaxRowCount() {
318: return this ._maxRowCount;
319: } //-- int getMaxRowCount()
320:
321: /**
322: * Method getMaxRowsDimensionReferenceReturns the value of
323: * field 'maxRowsDimensionReference'.
324: *
325: * @return the value of field 'maxRowsDimensionReference'.
326: */
327: public java.lang.String getMaxRowsDimensionReference() {
328: return this ._maxRowsDimensionReference;
329: } //-- java.lang.String getMaxRowsDimensionReference()
330:
331: /**
332: * Method getMetricDefinitionsReturns the value of field
333: * 'metricDefinitions'.
334: *
335: * @return the value of field 'metricDefinitions'.
336: */
337: public com.calipso.reportgenerator.reportdefinitions.MetricDefinitions getMetricDefinitions() {
338: return this ._metricDefinitions;
339: } //-- com.calipso.reportgenerator.reportdefinitions.MetricDefinitions getMetricDefinitions()
340:
341: /**
342: * Method getMultilanguageReturns the value of field
343: * 'multilanguage'.
344: *
345: * @return the value of field 'multilanguage'.
346: */
347: public boolean getMultilanguage() {
348: return this ._multilanguage;
349: } //-- boolean getMultilanguage()
350:
351: /**
352: * Method getPageFooterReturns the value of field 'pageFooter'.
353: *
354: * @return the value of field 'pageFooter'.
355: */
356: public java.lang.String getPageFooter() {
357: return this ._pageFooter;
358: } //-- java.lang.String getPageFooter()
359:
360: /**
361: * Method getPageHedingReturns the value of field 'pageHeding'.
362: *
363: * @return the value of field 'pageHeding'.
364: */
365: public java.lang.String getPageHeding() {
366: return this ._pageHeding;
367: } //-- java.lang.String getPageHeding()
368:
369: /**
370: * Method getParameterValuesReturns the value of field
371: * 'parameterValues'.
372: *
373: * @return the value of field 'parameterValues'.
374: */
375: public com.calipso.reportgenerator.reportdefinitions.ParameterValues getParameterValues() {
376: return this ._parameterValues;
377: } //-- com.calipso.reportgenerator.reportdefinitions.ParameterValues getParameterValues()
378:
379: /**
380: * Method getReportSourceReturns the value of field
381: * 'reportSource'.
382: *
383: * @return the value of field 'reportSource'.
384: */
385: public java.lang.String getReportSource() {
386: return this ._reportSource;
387: } //-- java.lang.String getReportSource()
388:
389: /**
390: * Method getReportTypeReturns the value of field 'reportType'.
391: *
392: * @return the value of field 'reportType'.
393: */
394: public com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType getReportType() {
395: return this ._reportType;
396: } //-- com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType getReportType()
397:
398: /**
399: * Method getRolesReturns the value of field 'roles'.
400: *
401: * @return the value of field 'roles'.
402: */
403: public com.calipso.reportgenerator.reportdefinitions.Roles getRoles() {
404: return this ._roles;
405: } //-- com.calipso.reportgenerator.reportdefinitions.Roles getRoles()
406:
407: /**
408: * Method getTitleReturns the value of field 'title'.
409: *
410: * @return the value of field 'title'.
411: */
412: public java.lang.String getTitle() {
413: return this ._title;
414: } //-- java.lang.String getTitle()
415:
416: /**
417: * Method getVisibleTotalsReturns the value of field
418: * 'visibleTotals'.
419: *
420: * @return the value of field 'visibleTotals'.
421: */
422: public boolean getVisibleTotals() {
423: return this ._visibleTotals;
424: } //-- boolean getVisibleTotals()
425:
426: /**
427: * Method hasIsTransient
428: */
429: public boolean hasIsTransient() {
430: return this ._has_isTransient;
431: } //-- boolean hasIsTransient()
432:
433: /**
434: * Method hasMaxRowCount
435: */
436: public boolean hasMaxRowCount() {
437: return this ._has_maxRowCount;
438: } //-- boolean hasMaxRowCount()
439:
440: /**
441: * Method hasMultilanguage
442: */
443: public boolean hasMultilanguage() {
444: return this ._has_multilanguage;
445: } //-- boolean hasMultilanguage()
446:
447: /**
448: * Method hasVisibleTotals
449: */
450: public boolean hasVisibleTotals() {
451: return this ._has_visibleTotals;
452: } //-- boolean hasVisibleTotals()
453:
454: /**
455: * Method isValid
456: */
457: public boolean isValid() {
458: try {
459: validate();
460: } catch (org.exolab.castor.xml.ValidationException vex) {
461: return false;
462: }
463: return true;
464: } //-- boolean isValid()
465:
466: /**
467: * Method marshal
468: *
469: * @param out
470: */
471: public void marshal(java.io.Writer out)
472: throws org.exolab.castor.xml.MarshalException,
473: org.exolab.castor.xml.ValidationException {
474:
475: Marshaller.marshal(this , out);
476: } //-- void marshal(java.io.Writer)
477:
478: /**
479: * Method marshal
480: *
481: * @param handler
482: */
483: public void marshal(org.xml.sax.ContentHandler handler)
484: throws java.io.IOException,
485: org.exolab.castor.xml.MarshalException,
486: org.exolab.castor.xml.ValidationException {
487:
488: Marshaller.marshal(this , handler);
489: } //-- void marshal(org.xml.sax.ContentHandler)
490:
491: /**
492: * Method setActionDefinitionsSets the value of field
493: * 'actionDefinitions'.
494: *
495: * @param actionDefinitions the value of field
496: * 'actionDefinitions'.
497: */
498: public void setActionDefinitions(
499: com.calipso.reportgenerator.reportdefinitions.ActionDefinitions actionDefinitions) {
500: this ._actionDefinitions = actionDefinitions;
501: } //-- void setActionDefinitions(com.calipso.reportgenerator.reportdefinitions.ActionDefinitions)
502:
503: /**
504: * Method setDescriptionSets the value of field 'description'.
505: *
506: * @param description the value of field 'description'.
507: */
508: public void setDescription(java.lang.String description) {
509: this ._description = description;
510: } //-- void setDescription(java.lang.String)
511:
512: /**
513: * Method setDimensionDefinitionsSets the value of field
514: * 'dimensionDefinitions'.
515: *
516: * @param dimensionDefinitions the value of field
517: * 'dimensionDefinitions'.
518: */
519: public void setDimensionDefinitions(
520: com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions dimensionDefinitions) {
521: this ._dimensionDefinitions = dimensionDefinitions;
522: } //-- void setDimensionDefinitions(com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions)
523:
524: /**
525: * Method setDrillDownDefinitionsSets the value of field
526: * 'drillDownDefinitions'.
527: *
528: * @param drillDownDefinitions the value of field
529: * 'drillDownDefinitions'.
530: */
531: public void setDrillDownDefinitions(
532: com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions drillDownDefinitions) {
533: this ._drillDownDefinitions = drillDownDefinitions;
534: } //-- void setDrillDownDefinitions(com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions)
535:
536: /**
537: * Method setEntitySets the value of field 'entity'.
538: *
539: * @param entity the value of field 'entity'.
540: */
541: public void setEntity(java.lang.String entity) {
542: this ._entity = entity;
543: } //-- void setEntity(java.lang.String)
544:
545: /**
546: * Method setFilterDefinitionsSets the value of field
547: * 'filterDefinitions'.
548: *
549: * @param filterDefinitions the value of field
550: * 'filterDefinitions'.
551: */
552: public void setFilterDefinitions(
553: com.calipso.reportgenerator.reportdefinitions.FilterDefinitions filterDefinitions) {
554: this ._filterDefinitions = filterDefinitions;
555: } //-- void setFilterDefinitions(com.calipso.reportgenerator.reportdefinitions.FilterDefinitions)
556:
557: /**
558: * Method setIdSets the value of field 'id'.
559: *
560: * @param id the value of field 'id'.
561: */
562: public void setId(java.lang.String id) {
563: this ._id = id;
564: } //-- void setId(java.lang.String)
565:
566: /**
567: * Method setInfoPageSets the value of field 'infoPage'.
568: *
569: * @param infoPage the value of field 'infoPage'.
570: */
571: public void setInfoPage(java.lang.String infoPage) {
572: this ._infoPage = infoPage;
573: } //-- void setInfoPage(java.lang.String)
574:
575: /**
576: * Method setIsTransientSets the value of field 'isTransient'.
577: *
578: * @param isTransient the value of field 'isTransient'.
579: */
580: public void setIsTransient(boolean isTransient) {
581: this ._isTransient = isTransient;
582: this ._has_isTransient = true;
583: } //-- void setIsTransient(boolean)
584:
585: /**
586: * Method setLayoutDesignSets the value of field
587: * 'layoutDesign'.
588: *
589: * @param layoutDesign the value of field 'layoutDesign'.
590: */
591: public void setLayoutDesign(java.lang.String layoutDesign) {
592: this ._layoutDesign = layoutDesign;
593: } //-- void setLayoutDesign(java.lang.String)
594:
595: /**
596: * Method setLocalizationsSets the value of field
597: * 'localizations'.
598: *
599: * @param localizations the value of field 'localizations'.
600: */
601: public void setLocalizations(
602: com.calipso.reportgenerator.reportdefinitions.Localizations localizations) {
603: this ._localizations = localizations;
604: } //-- void setLocalizations(com.calipso.reportgenerator.reportdefinitions.Localizations)
605:
606: /**
607: * Method setMaxRowCountSets the value of field 'maxRowCount'.
608: *
609: * @param maxRowCount the value of field 'maxRowCount'.
610: */
611: public void setMaxRowCount(int maxRowCount) {
612: this ._maxRowCount = maxRowCount;
613: this ._has_maxRowCount = true;
614: } //-- void setMaxRowCount(int)
615:
616: /**
617: * Method setMaxRowsDimensionReferenceSets the value of field
618: * 'maxRowsDimensionReference'.
619: *
620: * @param maxRowsDimensionReference the value of field
621: * 'maxRowsDimensionReference'.
622: */
623: public void setMaxRowsDimensionReference(
624: java.lang.String maxRowsDimensionReference) {
625: this ._maxRowsDimensionReference = maxRowsDimensionReference;
626: } //-- void setMaxRowsDimensionReference(java.lang.String)
627:
628: /**
629: * Method setMetricDefinitionsSets the value of field
630: * 'metricDefinitions'.
631: *
632: * @param metricDefinitions the value of field
633: * 'metricDefinitions'.
634: */
635: public void setMetricDefinitions(
636: com.calipso.reportgenerator.reportdefinitions.MetricDefinitions metricDefinitions) {
637: this ._metricDefinitions = metricDefinitions;
638: } //-- void setMetricDefinitions(com.calipso.reportgenerator.reportdefinitions.MetricDefinitions)
639:
640: /**
641: * Method setMultilanguageSets the value of field
642: * 'multilanguage'.
643: *
644: * @param multilanguage the value of field 'multilanguage'.
645: */
646: public void setMultilanguage(boolean multilanguage) {
647: this ._multilanguage = multilanguage;
648: this ._has_multilanguage = true;
649: } //-- void setMultilanguage(boolean)
650:
651: /**
652: * Method setPageFooterSets the value of field 'pageFooter'.
653: *
654: * @param pageFooter the value of field 'pageFooter'.
655: */
656: public void setPageFooter(java.lang.String pageFooter) {
657: this ._pageFooter = pageFooter;
658: } //-- void setPageFooter(java.lang.String)
659:
660: /**
661: * Method setPageHedingSets the value of field 'pageHeding'.
662: *
663: * @param pageHeding the value of field 'pageHeding'.
664: */
665: public void setPageHeding(java.lang.String pageHeding) {
666: this ._pageHeding = pageHeding;
667: } //-- void setPageHeding(java.lang.String)
668:
669: /**
670: * Method setParameterValuesSets the value of field
671: * 'parameterValues'.
672: *
673: * @param parameterValues the value of field 'parameterValues'.
674: */
675: public void setParameterValues(
676: com.calipso.reportgenerator.reportdefinitions.ParameterValues parameterValues) {
677: this ._parameterValues = parameterValues;
678: } //-- void setParameterValues(com.calipso.reportgenerator.reportdefinitions.ParameterValues)
679:
680: /**
681: * Method setReportSourceSets the value of field
682: * 'reportSource'.
683: *
684: * @param reportSource the value of field 'reportSource'.
685: */
686: public void setReportSource(java.lang.String reportSource) {
687: this ._reportSource = reportSource;
688: } //-- void setReportSource(java.lang.String)
689:
690: /**
691: * Method setReportTypeSets the value of field 'reportType'.
692: *
693: * @param reportType the value of field 'reportType'.
694: */
695: public void setReportType(
696: com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType reportType) {
697: this ._reportType = reportType;
698: } //-- void setReportType(com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType)
699:
700: /**
701: * Method setRolesSets the value of field 'roles'.
702: *
703: * @param roles the value of field 'roles'.
704: */
705: public void setRoles(
706: com.calipso.reportgenerator.reportdefinitions.Roles roles) {
707: this ._roles = roles;
708: } //-- void setRoles(com.calipso.reportgenerator.reportdefinitions.Roles)
709:
710: /**
711: * Method setTitleSets the value of field 'title'.
712: *
713: * @param title the value of field 'title'.
714: */
715: public void setTitle(java.lang.String title) {
716: this ._title = title;
717: } //-- void setTitle(java.lang.String)
718:
719: /**
720: * Method setVisibleTotalsSets the value of field
721: * 'visibleTotals'.
722: *
723: * @param visibleTotals the value of field 'visibleTotals'.
724: */
725: public void setVisibleTotals(boolean visibleTotals) {
726: this ._visibleTotals = visibleTotals;
727: this ._has_visibleTotals = true;
728: } //-- void setVisibleTotals(boolean)
729:
730: /**
731: * Method unmarshal
732: *
733: * @param reader
734: */
735: public static com.calipso.reportgenerator.reportdefinitions.ReportDefinition unmarshal(
736: java.io.Reader reader)
737: throws org.exolab.castor.xml.MarshalException,
738: org.exolab.castor.xml.ValidationException {
739: return (com.calipso.reportgenerator.reportdefinitions.ReportDefinition) Unmarshaller
740: .unmarshal(
741: com.calipso.reportgenerator.reportdefinitions.ReportDefinition.class,
742: reader);
743: } //-- com.calipso.reportgenerator.reportdefinitions.ReportDefinition unmarshal(java.io.Reader)
744:
745: /**
746: * Method validate
747: */
748: public void validate()
749: throws org.exolab.castor.xml.ValidationException {
750: org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
751: validator.validate(this );
752: } //-- void validate()
753:
754: }
|