KickJava   Java API By Example, From Geeks To Geeks.

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


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 com.calipso.reportgenerator.reportdefinitions.types.ReportDataType;
15 import java.io.IOException JavaDoc;
16 import java.io.Reader JavaDoc;
17 import java.io.Serializable JavaDoc;
18 import java.io.Writer 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 DimensionSourceDefinition.
27  *
28  * @version $Revision$ $Date$
29  */

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

37     /**
38      * Field _name
39      */

40     private java.lang.String JavaDoc _name;
41
42     /**
43      * Field _description
44      */

45     private java.lang.String JavaDoc _description;
46
47     /**
48      * Field _dataType
49      */

50     private com.calipso.reportgenerator.reportdefinitions.types.ReportDataType _dataType;
51
52     /**
53      * Field _calculated
54      */

55     private boolean _calculated;
56
57     /**
58      * keeps track of state for field: _calculated
59      */

60     private boolean _has_calculated;
61
62     /**
63      * Field _expression
64      */

65     private java.lang.String JavaDoc _expression;
66
67     /**
68      * Field _externalData
69      */

70     private java.lang.String JavaDoc _externalData;
71
72     /**
73      * Field _indexed
74      */

75     private boolean _indexed;
76
77     /**
78      * keeps track of state for field: _indexed
79      */

80     private boolean _has_indexed;
81
82
83       //----------------/
84
//- Constructors -/
85
//----------------/
86

87     public DimensionSourceDefinition() {
88         super();
89     } //-- com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinition()
90

91
92       //-----------/
93
//- Methods -/
94
//-----------/
95

96     /**
97      * Method deleteCalculated
98      */

99     public void deleteCalculated()
100     {
101         this._has_calculated= false;
102     } //-- void deleteCalculated()
103

104     /**
105      * Method deleteIndexed
106      */

107     public void deleteIndexed()
108     {
109         this._has_indexed= false;
110     } //-- void deleteIndexed()
111

112     /**
113      * Method getCalculatedReturns the value of field 'calculated'.
114      *
115      * @return the value of field 'calculated'.
116      */

117     public boolean getCalculated()
118     {
119         return this._calculated;
120     } //-- boolean getCalculated()
121

122     /**
123      * Method getDataTypeReturns the value of field 'dataType'.
124      *
125      * @return the value of field 'dataType'.
126      */

127     public com.calipso.reportgenerator.reportdefinitions.types.ReportDataType getDataType()
128     {
129         return this._dataType;
130     } //-- com.calipso.reportgenerator.reportdefinitions.types.ReportDataType getDataType()
131

132     /**
133      * Method getDescriptionReturns the value of field
134      * 'description'.
135      *
136      * @return the value of field 'description'.
137      */

138     public java.lang.String JavaDoc getDescription()
139     {
140         return this._description;
141     } //-- java.lang.String getDescription()
142

143     /**
144      * Method getExpressionReturns the value of field 'expression'.
145      *
146      * @return the value of field 'expression'.
147      */

148     public java.lang.String JavaDoc getExpression()
149     {
150         return this._expression;
151     } //-- java.lang.String getExpression()
152

153     /**
154      * Method getExternalDataReturns the value of field
155      * 'externalData'.
156      *
157      * @return the value of field 'externalData'.
158      */

159     public java.lang.String JavaDoc getExternalData()
160     {
161         return this._externalData;
162     } //-- java.lang.String getExternalData()
163

164     /**
165      * Method getIndexedReturns the value of field 'indexed'.
166      *
167      * @return the value of field 'indexed'.
168      */

169     public boolean getIndexed()
170     {
171         return this._indexed;
172     } //-- boolean getIndexed()
173

174     /**
175      * Method getNameReturns the value of field 'name'.
176      *
177      * @return the value of field 'name'.
178      */

179     public java.lang.String JavaDoc getName()
180     {
181         return this._name;
182     } //-- java.lang.String getName()
183

184     /**
185      * Method hasCalculated
186      */

187     public boolean hasCalculated()
188     {
189         return this._has_calculated;
190     } //-- boolean hasCalculated()
191

192     /**
193      * Method hasIndexed
194      */

195     public boolean hasIndexed()
196     {
197         return this._has_indexed;
198     } //-- boolean hasIndexed()
199

200     /**
201      * Method isValid
202      */

203     public boolean isValid()
204     {
205         try {
206             validate();
207         }
208         catch (org.exolab.castor.xml.ValidationException vex) {
209             return false;
210         }
211         return true;
212     } //-- boolean isValid()
213

214     /**
215      * Method marshal
216      *
217      * @param out
218      */

219     public void marshal(java.io.Writer JavaDoc out)
220         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
221     {
222         
223         Marshaller.marshal(this, out);
224     } //-- void marshal(java.io.Writer)
225

226     /**
227      * Method marshal
228      *
229      * @param handler
230      */

231     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
232         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
233     {
234         
235         Marshaller.marshal(this, handler);
236     } //-- void marshal(org.xml.sax.ContentHandler)
237

238     /**
239      * Method setCalculatedSets the value of field 'calculated'.
240      *
241      * @param calculated the value of field 'calculated'.
242      */

243     public void setCalculated(boolean calculated)
244     {
245         this._calculated = calculated;
246         this._has_calculated = true;
247     } //-- void setCalculated(boolean)
248

249     /**
250      * Method setDataTypeSets the value of field 'dataType'.
251      *
252      * @param dataType the value of field 'dataType'.
253      */

254     public void setDataType(com.calipso.reportgenerator.reportdefinitions.types.ReportDataType dataType)
255     {
256         this._dataType = dataType;
257     } //-- void setDataType(com.calipso.reportgenerator.reportdefinitions.types.ReportDataType)
258

259     /**
260      * Method setDescriptionSets the value of field 'description'.
261      *
262      * @param description the value of field 'description'.
263      */

264     public void setDescription(java.lang.String JavaDoc description)
265     {
266         this._description = description;
267     } //-- void setDescription(java.lang.String)
268

269     /**
270      * Method setExpressionSets the value of field 'expression'.
271      *
272      * @param expression the value of field 'expression'.
273      */

274     public void setExpression(java.lang.String JavaDoc expression)
275     {
276         this._expression = expression;
277     } //-- void setExpression(java.lang.String)
278

279     /**
280      * Method setExternalDataSets the value of field
281      * 'externalData'.
282      *
283      * @param externalData the value of field 'externalData'.
284      */

285     public void setExternalData(java.lang.String JavaDoc externalData)
286     {
287         this._externalData = externalData;
288     } //-- void setExternalData(java.lang.String)
289

290     /**
291      * Method setIndexedSets the value of field 'indexed'.
292      *
293      * @param indexed the value of field 'indexed'.
294      */

295     public void setIndexed(boolean indexed)
296     {
297         this._indexed = indexed;
298         this._has_indexed = true;
299     } //-- void setIndexed(boolean)
300

301     /**
302      * Method setNameSets the value of field 'name'.
303      *
304      * @param name the value of field 'name'.
305      */

306     public void setName(java.lang.String JavaDoc name)
307     {
308         this._name = name;
309     } //-- void setName(java.lang.String)
310

311     /**
312      * Method unmarshal
313      *
314      * @param reader
315      */

316     public static com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinition unmarshal(java.io.Reader JavaDoc reader)
317         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
318     {
319         return (com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinition) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinition.class, reader);
320     } //-- com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinition unmarshal(java.io.Reader)
321

322     /**
323      * Method validate
324      */

325     public void validate()
326         throws org.exolab.castor.xml.ValidationException
327     {
328         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
329         validator.validate(this);
330     } //-- void validate()
331

332 }
333
Popular Tags