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.FilterDefinitionFilterTypeType;
015: import com.calipso.reportgenerator.reportdefinitions.types.ReportDataType;
016: import java.io.IOException;
017: import java.io.Reader;
018: import java.io.Serializable;
019: import java.io.Writer;
020: import org.exolab.castor.xml.MarshalException;
021: import org.exolab.castor.xml.Marshaller;
022: import org.exolab.castor.xml.Unmarshaller;
023: import org.exolab.castor.xml.ValidationException;
024: import org.xml.sax.ContentHandler;
025:
026: /**
027: * Class FilterDefinition.
028: *
029: * @version $Revision$ $Date$
030: */
031: public class FilterDefinition implements java.io.Serializable {
032:
033: //--------------------------/
034: //- Class/Member Variables -/
035: //--------------------------/
036:
037: /**
038: * Field _name
039: */
040: private java.lang.String _name;
041:
042: /**
043: * Field _dimensionName
044: */
045: private java.lang.String _dimensionName;
046:
047: /**
048: * Field _dataType
049: */
050: private com.calipso.reportgenerator.reportdefinitions.types.ReportDataType _dataType;
051:
052: /**
053: * Field _filterType
054: */
055: private com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType _filterType;
056:
057: /**
058: * Field _visual
059: */
060: private boolean _visual;
061:
062: /**
063: * keeps track of state for field: _visual
064: */
065: private boolean _has_visual;
066:
067: //----------------/
068: //- Constructors -/
069: //----------------/
070:
071: public FilterDefinition() {
072: super ();
073: } //-- com.calipso.reportgenerator.reportdefinitions.FilterDefinition()
074:
075: //-----------/
076: //- Methods -/
077: //-----------/
078:
079: /**
080: * Method getDataTypeReturns the value of field 'dataType'.
081: *
082: * @return the value of field 'dataType'.
083: */
084: public com.calipso.reportgenerator.reportdefinitions.types.ReportDataType getDataType() {
085: return this ._dataType;
086: } //-- com.calipso.reportgenerator.reportdefinitions.types.ReportDataType getDataType()
087:
088: /**
089: * Method getDimensionNameReturns the value of field
090: * 'dimensionName'.
091: *
092: * @return the value of field 'dimensionName'.
093: */
094: public java.lang.String getDimensionName() {
095: return this ._dimensionName;
096: } //-- java.lang.String getDimensionName()
097:
098: /**
099: * Method getFilterTypeReturns the value of field 'filterType'.
100: *
101: * @return the value of field 'filterType'.
102: */
103: public com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType getFilterType() {
104: return this ._filterType;
105: } //-- com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType getFilterType()
106:
107: /**
108: * Method getNameReturns the value of field 'name'.
109: *
110: * @return the value of field 'name'.
111: */
112: public java.lang.String getName() {
113: return this ._name;
114: } //-- java.lang.String getName()
115:
116: /**
117: * Method getVisualReturns the value of field 'visual'.
118: *
119: * @return the value of field 'visual'.
120: */
121: public boolean getVisual() {
122: return this ._visual;
123: } //-- boolean getVisual()
124:
125: /**
126: * Method hasVisual
127: */
128: public boolean hasVisual() {
129: return this ._has_visual;
130: } //-- boolean hasVisual()
131:
132: /**
133: * Method isValid
134: */
135: public boolean isValid() {
136: try {
137: validate();
138: } catch (org.exolab.castor.xml.ValidationException vex) {
139: return false;
140: }
141: return true;
142: } //-- boolean isValid()
143:
144: /**
145: * Method marshal
146: *
147: * @param out
148: */
149: public void marshal(java.io.Writer out)
150: throws org.exolab.castor.xml.MarshalException,
151: org.exolab.castor.xml.ValidationException {
152:
153: Marshaller.marshal(this , out);
154: } //-- void marshal(java.io.Writer)
155:
156: /**
157: * Method marshal
158: *
159: * @param handler
160: */
161: public void marshal(org.xml.sax.ContentHandler handler)
162: throws java.io.IOException,
163: org.exolab.castor.xml.MarshalException,
164: org.exolab.castor.xml.ValidationException {
165:
166: Marshaller.marshal(this , handler);
167: } //-- void marshal(org.xml.sax.ContentHandler)
168:
169: /**
170: * Method setDataTypeSets the value of field 'dataType'.
171: *
172: * @param dataType the value of field 'dataType'.
173: */
174: public void setDataType(
175: com.calipso.reportgenerator.reportdefinitions.types.ReportDataType dataType) {
176: this ._dataType = dataType;
177: } //-- void setDataType(com.calipso.reportgenerator.reportdefinitions.types.ReportDataType)
178:
179: /**
180: * Method setDimensionNameSets the value of field
181: * 'dimensionName'.
182: *
183: * @param dimensionName the value of field 'dimensionName'.
184: */
185: public void setDimensionName(java.lang.String dimensionName) {
186: this ._dimensionName = dimensionName;
187: } //-- void setDimensionName(java.lang.String)
188:
189: /**
190: * Method setFilterTypeSets the value of field 'filterType'.
191: *
192: * @param filterType the value of field 'filterType'.
193: */
194: public void setFilterType(
195: com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType filterType) {
196: this ._filterType = filterType;
197: } //-- void setFilterType(com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType)
198:
199: /**
200: * Method setNameSets the value of field 'name'.
201: *
202: * @param name the value of field 'name'.
203: */
204: public void setName(java.lang.String name) {
205: this ._name = name;
206: } //-- void setName(java.lang.String)
207:
208: /**
209: * Method setVisualSets the value of field 'visual'.
210: *
211: * @param visual the value of field 'visual'.
212: */
213: public void setVisual(boolean visual) {
214: this ._visual = visual;
215: this ._has_visual = true;
216: } //-- void setVisual(boolean)
217:
218: /**
219: * Method unmarshal
220: *
221: * @param reader
222: */
223: public static com.calipso.reportgenerator.reportdefinitions.FilterDefinition unmarshal(
224: java.io.Reader reader)
225: throws org.exolab.castor.xml.MarshalException,
226: org.exolab.castor.xml.ValidationException {
227: return (com.calipso.reportgenerator.reportdefinitions.FilterDefinition) Unmarshaller
228: .unmarshal(
229: com.calipso.reportgenerator.reportdefinitions.FilterDefinition.class,
230: reader);
231: } //-- com.calipso.reportgenerator.reportdefinitions.FilterDefinition unmarshal(java.io.Reader)
232:
233: /**
234: * Method validate
235: */
236: public void validate()
237: throws org.exolab.castor.xml.ValidationException {
238: org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
239: validator.validate(this );
240: } //-- void validate()
241:
242: }
|