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 org.exolab.castor.xml.MarshalException;
019: import org.exolab.castor.xml.Marshaller;
020: import org.exolab.castor.xml.Unmarshaller;
021: import org.exolab.castor.xml.ValidationException;
022: import org.xml.sax.ContentHandler;
023:
024: /**
025: * Class ReportView.
026: *
027: * @version $Revision$ $Date$
028: */
029: public class ReportView implements java.io.Serializable {
030:
031: //--------------------------/
032: //- Class/Member Variables -/
033: //--------------------------/
034:
035: /**
036: * Field _id
037: */
038: private java.lang.String _id;
039:
040: /**
041: * Field _description
042: */
043: private java.lang.String _description;
044:
045: /**
046: * Field _reportDefinitionId
047: */
048: private java.lang.String _reportDefinitionId;
049:
050: /**
051: * Field _userID
052: */
053: private java.lang.String _userID;
054:
055: /**
056: * Field _userName
057: */
058: private java.lang.String _userName;
059:
060: /**
061: * Field _reportLayout
062: */
063: private java.lang.String _reportLayout;
064:
065: /**
066: * Field _visibleTotals
067: */
068: private boolean _visibleTotals = true;
069:
070: /**
071: * keeps track of state for field: _visibleTotals
072: */
073: private boolean _has_visibleTotals;
074:
075: /**
076: * Field _default
077: */
078: private boolean _default = false;
079:
080: /**
081: * keeps track of state for field: _default
082: */
083: private boolean _has_default;
084:
085: /**
086: * Field _viewParameterValues
087: */
088: private com.calipso.reportgenerator.reportdefinitions.ViewParameterValues _viewParameterValues;
089:
090: /**
091: * Field _dimensionProperties
092: */
093: private com.calipso.reportgenerator.reportdefinitions.DimensionProperties _dimensionProperties;
094:
095: /**
096: * Field _metricProperties
097: */
098: private com.calipso.reportgenerator.reportdefinitions.MetricProperties _metricProperties;
099:
100: /**
101: * Field _lightBoxer
102: */
103: private com.calipso.reportgenerator.reportdefinitions.LightBoxer _lightBoxer;
104:
105: //----------------/
106: //- Constructors -/
107: //----------------/
108:
109: public ReportView() {
110: super ();
111: } //-- com.calipso.reportgenerator.reportdefinitions.ReportView()
112:
113: //-----------/
114: //- Methods -/
115: //-----------/
116:
117: /**
118: * Method deleteDefault
119: */
120: public void deleteDefault() {
121: this ._has_default = false;
122: } //-- void deleteDefault()
123:
124: /**
125: * Method deleteVisibleTotals
126: */
127: public void deleteVisibleTotals() {
128: this ._has_visibleTotals = false;
129: } //-- void deleteVisibleTotals()
130:
131: /**
132: * Method getDefaultReturns the value of field 'default'.
133: *
134: * @return the value of field 'default'.
135: */
136: public boolean getDefault() {
137: return this ._default;
138: } //-- boolean getDefault()
139:
140: /**
141: * Method getDescriptionReturns the value of field
142: * 'description'.
143: *
144: * @return the value of field 'description'.
145: */
146: public java.lang.String getDescription() {
147: return this ._description;
148: } //-- java.lang.String getDescription()
149:
150: /**
151: * Method getDimensionPropertiesReturns the value of field
152: * 'dimensionProperties'.
153: *
154: * @return the value of field 'dimensionProperties'.
155: */
156: public com.calipso.reportgenerator.reportdefinitions.DimensionProperties getDimensionProperties() {
157: return this ._dimensionProperties;
158: } //-- com.calipso.reportgenerator.reportdefinitions.DimensionProperties getDimensionProperties()
159:
160: /**
161: * Method getIdReturns the value of field 'id'.
162: *
163: * @return the value of field 'id'.
164: */
165: public java.lang.String getId() {
166: return this ._id;
167: } //-- java.lang.String getId()
168:
169: /**
170: * Method getLightBoxerReturns the value of field 'lightBoxer'.
171: *
172: * @return the value of field 'lightBoxer'.
173: */
174: public com.calipso.reportgenerator.reportdefinitions.LightBoxer getLightBoxer() {
175: return this ._lightBoxer;
176: } //-- com.calipso.reportgenerator.reportdefinitions.LightBoxer getLightBoxer()
177:
178: /**
179: * Method getMetricPropertiesReturns the value of field
180: * 'metricProperties'.
181: *
182: * @return the value of field 'metricProperties'.
183: */
184: public com.calipso.reportgenerator.reportdefinitions.MetricProperties getMetricProperties() {
185: return this ._metricProperties;
186: } //-- com.calipso.reportgenerator.reportdefinitions.MetricProperties getMetricProperties()
187:
188: /**
189: * Method getReportDefinitionIdReturns the value of field
190: * 'reportDefinitionId'.
191: *
192: * @return the value of field 'reportDefinitionId'.
193: */
194: public java.lang.String getReportDefinitionId() {
195: return this ._reportDefinitionId;
196: } //-- java.lang.String getReportDefinitionId()
197:
198: /**
199: * Method getReportLayoutReturns the value of field
200: * 'reportLayout'.
201: *
202: * @return the value of field 'reportLayout'.
203: */
204: public java.lang.String getReportLayout() {
205: return this ._reportLayout;
206: } //-- java.lang.String getReportLayout()
207:
208: /**
209: * Method getUserIDReturns the value of field 'userID'.
210: *
211: * @return the value of field 'userID'.
212: */
213: public java.lang.String getUserID() {
214: return this ._userID;
215: } //-- java.lang.String getUserID()
216:
217: /**
218: * Method getUserNameReturns the value of field 'userName'.
219: *
220: * @return the value of field 'userName'.
221: */
222: public java.lang.String getUserName() {
223: return this ._userName;
224: } //-- java.lang.String getUserName()
225:
226: /**
227: * Method getViewParameterValuesReturns the value of field
228: * 'viewParameterValues'.
229: *
230: * @return the value of field 'viewParameterValues'.
231: */
232: public com.calipso.reportgenerator.reportdefinitions.ViewParameterValues getViewParameterValues() {
233: return this ._viewParameterValues;
234: } //-- com.calipso.reportgenerator.reportdefinitions.ViewParameterValues getViewParameterValues()
235:
236: /**
237: * Method getVisibleTotalsReturns the value of field
238: * 'visibleTotals'.
239: *
240: * @return the value of field 'visibleTotals'.
241: */
242: public boolean getVisibleTotals() {
243: return this ._visibleTotals;
244: } //-- boolean getVisibleTotals()
245:
246: /**
247: * Method hasDefault
248: */
249: public boolean hasDefault() {
250: return this ._has_default;
251: } //-- boolean hasDefault()
252:
253: /**
254: * Method hasVisibleTotals
255: */
256: public boolean hasVisibleTotals() {
257: return this ._has_visibleTotals;
258: } //-- boolean hasVisibleTotals()
259:
260: /**
261: * Method isValid
262: */
263: public boolean isValid() {
264: try {
265: validate();
266: } catch (org.exolab.castor.xml.ValidationException vex) {
267: return false;
268: }
269: return true;
270: } //-- boolean isValid()
271:
272: /**
273: * Method marshal
274: *
275: * @param out
276: */
277: public void marshal(java.io.Writer out)
278: throws org.exolab.castor.xml.MarshalException,
279: org.exolab.castor.xml.ValidationException {
280:
281: Marshaller.marshal(this , out);
282: } //-- void marshal(java.io.Writer)
283:
284: /**
285: * Method marshal
286: *
287: * @param handler
288: */
289: public void marshal(org.xml.sax.ContentHandler handler)
290: throws java.io.IOException,
291: org.exolab.castor.xml.MarshalException,
292: org.exolab.castor.xml.ValidationException {
293:
294: Marshaller.marshal(this , handler);
295: } //-- void marshal(org.xml.sax.ContentHandler)
296:
297: /**
298: * Method setDefaultSets the value of field 'default'.
299: *
300: * @param _default
301: * @param default the value of field 'default'.
302: */
303: public void setDefault(boolean _default) {
304: this ._default = _default;
305: this ._has_default = true;
306: } //-- void setDefault(boolean)
307:
308: /**
309: * Method setDescriptionSets the value of field 'description'.
310: *
311: * @param description the value of field 'description'.
312: */
313: public void setDescription(java.lang.String description) {
314: this ._description = description;
315: } //-- void setDescription(java.lang.String)
316:
317: /**
318: * Method setDimensionPropertiesSets the value of field
319: * 'dimensionProperties'.
320: *
321: * @param dimensionProperties the value of field
322: * 'dimensionProperties'.
323: */
324: public void setDimensionProperties(
325: com.calipso.reportgenerator.reportdefinitions.DimensionProperties dimensionProperties) {
326: this ._dimensionProperties = dimensionProperties;
327: } //-- void setDimensionProperties(com.calipso.reportgenerator.reportdefinitions.DimensionProperties)
328:
329: /**
330: * Method setIdSets the value of field 'id'.
331: *
332: * @param id the value of field 'id'.
333: */
334: public void setId(java.lang.String id) {
335: this ._id = id;
336: } //-- void setId(java.lang.String)
337:
338: /**
339: * Method setLightBoxerSets the value of field 'lightBoxer'.
340: *
341: * @param lightBoxer the value of field 'lightBoxer'.
342: */
343: public void setLightBoxer(
344: com.calipso.reportgenerator.reportdefinitions.LightBoxer lightBoxer) {
345: this ._lightBoxer = lightBoxer;
346: } //-- void setLightBoxer(com.calipso.reportgenerator.reportdefinitions.LightBoxer)
347:
348: /**
349: * Method setMetricPropertiesSets the value of field
350: * 'metricProperties'.
351: *
352: * @param metricProperties the value of field 'metricProperties'
353: */
354: public void setMetricProperties(
355: com.calipso.reportgenerator.reportdefinitions.MetricProperties metricProperties) {
356: this ._metricProperties = metricProperties;
357: } //-- void setMetricProperties(com.calipso.reportgenerator.reportdefinitions.MetricProperties)
358:
359: /**
360: * Method setReportDefinitionIdSets the value of field
361: * 'reportDefinitionId'.
362: *
363: * @param reportDefinitionId the value of field
364: * 'reportDefinitionId'.
365: */
366: public void setReportDefinitionId(
367: java.lang.String reportDefinitionId) {
368: this ._reportDefinitionId = reportDefinitionId;
369: } //-- void setReportDefinitionId(java.lang.String)
370:
371: /**
372: * Method setReportLayoutSets the value of field
373: * 'reportLayout'.
374: *
375: * @param reportLayout the value of field 'reportLayout'.
376: */
377: public void setReportLayout(java.lang.String reportLayout) {
378: this ._reportLayout = reportLayout;
379: } //-- void setReportLayout(java.lang.String)
380:
381: /**
382: * Method setUserIDSets the value of field 'userID'.
383: *
384: * @param userID the value of field 'userID'.
385: */
386: public void setUserID(java.lang.String userID) {
387: this ._userID = userID;
388: } //-- void setUserID(java.lang.String)
389:
390: /**
391: * Method setUserNameSets the value of field 'userName'.
392: *
393: * @param userName the value of field 'userName'.
394: */
395: public void setUserName(java.lang.String userName) {
396: this ._userName = userName;
397: } //-- void setUserName(java.lang.String)
398:
399: /**
400: * Method setViewParameterValuesSets the value of field
401: * 'viewParameterValues'.
402: *
403: * @param viewParameterValues the value of field
404: * 'viewParameterValues'.
405: */
406: public void setViewParameterValues(
407: com.calipso.reportgenerator.reportdefinitions.ViewParameterValues viewParameterValues) {
408: this ._viewParameterValues = viewParameterValues;
409: } //-- void setViewParameterValues(com.calipso.reportgenerator.reportdefinitions.ViewParameterValues)
410:
411: /**
412: * Method setVisibleTotalsSets the value of field
413: * 'visibleTotals'.
414: *
415: * @param visibleTotals the value of field 'visibleTotals'.
416: */
417: public void setVisibleTotals(boolean visibleTotals) {
418: this ._visibleTotals = visibleTotals;
419: this ._has_visibleTotals = true;
420: } //-- void setVisibleTotals(boolean)
421:
422: /**
423: * Method unmarshal
424: *
425: * @param reader
426: */
427: public static com.calipso.reportgenerator.reportdefinitions.ReportView unmarshal(
428: java.io.Reader reader)
429: throws org.exolab.castor.xml.MarshalException,
430: org.exolab.castor.xml.ValidationException {
431: return (com.calipso.reportgenerator.reportdefinitions.ReportView) Unmarshaller
432: .unmarshal(
433: com.calipso.reportgenerator.reportdefinitions.ReportView.class,
434: reader);
435: } //-- com.calipso.reportgenerator.reportdefinitions.ReportView unmarshal(java.io.Reader)
436:
437: /**
438: * Method validate
439: */
440: public void validate()
441: throws org.exolab.castor.xml.ValidationException {
442: org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
443: validator.validate(this );
444: } //-- void validate()
445:
446: }
|