KickJava   Java API By Example, From Geeks To Geeks.

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


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.DataSourceDefinitionSourceTypeType;
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 DataSourceDefinition.
27  *
28  * @version $Revision$ $Date$
29  */

30 public class DataSourceDefinition 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 _sourceType
44      */

45     private com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType _sourceType;
46
47     /**
48      * Field _expression
49      */

50     private java.lang.String JavaDoc _expression;
51
52     /**
53      * Field _externalClassName
54      */

55     private java.lang.String JavaDoc _externalClassName;
56
57     /**
58      * Field _externalSourceData
59      */

60     private java.lang.String JavaDoc _externalSourceData;
61
62     /**
63      * Field _externalConnectionString
64      */

65     private java.lang.String JavaDoc _externalConnectionString;
66
67     /**
68      * Field _externalConnectionClassName
69      */

70     private java.lang.String JavaDoc _externalConnectionClassName;
71
72     /**
73      * Field _externalConnectionLocalUrl
74      */

75     private java.lang.String JavaDoc _externalConnectionLocalUrl;
76
77     /**
78      * Field _externalConnectionDistributedUrl
79      */

80     private java.lang.String JavaDoc _externalConnectionDistributedUrl;
81
82     /**
83      * Field _externalConnectionUser
84      */

85     private java.lang.String JavaDoc _externalConnectionUser;
86
87     /**
88      * Field _externalConnectionPassword
89      */

90     private java.lang.String JavaDoc _externalConnectionPassword;
91
92     /**
93      * Field _datePattern
94      */

95     private java.lang.String JavaDoc _datePattern;
96
97     /**
98      * Field _dateTimePattern
99      */

100     private java.lang.String JavaDoc _dateTimePattern;
101
102     /**
103      * Field _sheetName
104      */

105     private java.lang.String JavaDoc _sheetName;
106
107     /**
108      * Field _dataInitialCell
109      */

110     private java.lang.String JavaDoc _dataInitialCell;
111
112     /**
113      * Field _dataEndingCell
114      */

115     private java.lang.String JavaDoc _dataEndingCell;
116
117
118       //----------------/
119
//- Constructors -/
120
//----------------/
121

122     public DataSourceDefinition() {
123         super();
124     } //-- com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition()
125

126
127       //-----------/
128
//- Methods -/
129
//-----------/
130

131     /**
132      * Method getDataEndingCellReturns the value of field
133      * 'dataEndingCell'.
134      *
135      * @return the value of field 'dataEndingCell'.
136      */

137     public java.lang.String JavaDoc getDataEndingCell()
138     {
139         return this._dataEndingCell;
140     } //-- java.lang.String getDataEndingCell()
141

142     /**
143      * Method getDataInitialCellReturns the value of field
144      * 'dataInitialCell'.
145      *
146      * @return the value of field 'dataInitialCell'.
147      */

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

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

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

164     /**
165      * Method getDateTimePatternReturns the value of field
166      * 'dateTimePattern'.
167      *
168      * @return the value of field 'dateTimePattern'.
169      */

170     public java.lang.String JavaDoc getDateTimePattern()
171     {
172         return this._dateTimePattern;
173     } //-- java.lang.String getDateTimePattern()
174

175     /**
176      * Method getExpressionReturns the value of field 'expression'.
177      *
178      * @return the value of field 'expression'.
179      */

180     public java.lang.String JavaDoc getExpression()
181     {
182         return this._expression;
183     } //-- java.lang.String getExpression()
184

185     /**
186      * Method getExternalClassNameReturns the value of field
187      * 'externalClassName'.
188      *
189      * @return the value of field 'externalClassName'.
190      */

191     public java.lang.String JavaDoc getExternalClassName()
192     {
193         return this._externalClassName;
194     } //-- java.lang.String getExternalClassName()
195

196     /**
197      * Method getExternalConnectionClassNameReturns the value of
198      * field 'externalConnectionClassName'.
199      *
200      * @return the value of field 'externalConnectionClassName'.
201      */

202     public java.lang.String JavaDoc getExternalConnectionClassName()
203     {
204         return this._externalConnectionClassName;
205     } //-- java.lang.String getExternalConnectionClassName()
206

207     /**
208      * Method getExternalConnectionDistributedUrlReturns the value
209      * of field 'externalConnectionDistributedUrl'.
210      *
211      * @return the value of field 'externalConnectionDistributedUrl'
212      */

213     public java.lang.String JavaDoc getExternalConnectionDistributedUrl()
214     {
215         return this._externalConnectionDistributedUrl;
216     } //-- java.lang.String getExternalConnectionDistributedUrl()
217

218     /**
219      * Method getExternalConnectionLocalUrlReturns the value of
220      * field 'externalConnectionLocalUrl'.
221      *
222      * @return the value of field 'externalConnectionLocalUrl'.
223      */

224     public java.lang.String JavaDoc getExternalConnectionLocalUrl()
225     {
226         return this._externalConnectionLocalUrl;
227     } //-- java.lang.String getExternalConnectionLocalUrl()
228

229     /**
230      * Method getExternalConnectionPasswordReturns the value of
231      * field 'externalConnectionPassword'.
232      *
233      * @return the value of field 'externalConnectionPassword'.
234      */

235     public java.lang.String JavaDoc getExternalConnectionPassword()
236     {
237         return this._externalConnectionPassword;
238     } //-- java.lang.String getExternalConnectionPassword()
239

240     /**
241      * Method getExternalConnectionStringReturns the value of field
242      * 'externalConnectionString'.
243      *
244      * @return the value of field 'externalConnectionString'.
245      */

246     public java.lang.String JavaDoc getExternalConnectionString()
247     {
248         return this._externalConnectionString;
249     } //-- java.lang.String getExternalConnectionString()
250

251     /**
252      * Method getExternalConnectionUserReturns the value of field
253      * 'externalConnectionUser'.
254      *
255      * @return the value of field 'externalConnectionUser'.
256      */

257     public java.lang.String JavaDoc getExternalConnectionUser()
258     {
259         return this._externalConnectionUser;
260     } //-- java.lang.String getExternalConnectionUser()
261

262     /**
263      * Method getExternalSourceDataReturns the value of field
264      * 'externalSourceData'.
265      *
266      * @return the value of field 'externalSourceData'.
267      */

268     public java.lang.String JavaDoc getExternalSourceData()
269     {
270         return this._externalSourceData;
271     } //-- java.lang.String getExternalSourceData()
272

273     /**
274      * Method getNameReturns the value of field 'name'.
275      *
276      * @return the value of field 'name'.
277      */

278     public java.lang.String JavaDoc getName()
279     {
280         return this._name;
281     } //-- java.lang.String getName()
282

283     /**
284      * Method getSheetNameReturns the value of field 'sheetName'.
285      *
286      * @return the value of field 'sheetName'.
287      */

288     public java.lang.String JavaDoc getSheetName()
289     {
290         return this._sheetName;
291     } //-- java.lang.String getSheetName()
292

293     /**
294      * Method getSourceTypeReturns the value of field 'sourceType'.
295      *
296      * @return the value of field 'sourceType'.
297      */

298     public com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType getSourceType()
299     {
300         return this._sourceType;
301     } //-- com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType getSourceType()
302

303     /**
304      * Method isValid
305      */

306     public boolean isValid()
307     {
308         try {
309             validate();
310         }
311         catch (org.exolab.castor.xml.ValidationException vex) {
312             return false;
313         }
314         return true;
315     } //-- boolean isValid()
316

317     /**
318      * Method marshal
319      *
320      * @param out
321      */

322     public void marshal(java.io.Writer JavaDoc out)
323         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
324     {
325         
326         Marshaller.marshal(this, out);
327     } //-- void marshal(java.io.Writer)
328

329     /**
330      * Method marshal
331      *
332      * @param handler
333      */

334     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
335         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
336     {
337         
338         Marshaller.marshal(this, handler);
339     } //-- void marshal(org.xml.sax.ContentHandler)
340

341     /**
342      * Method setDataEndingCellSets the value of field
343      * 'dataEndingCell'.
344      *
345      * @param dataEndingCell the value of field 'dataEndingCell'.
346      */

347     public void setDataEndingCell(java.lang.String JavaDoc dataEndingCell)
348     {
349         this._dataEndingCell = dataEndingCell;
350     } //-- void setDataEndingCell(java.lang.String)
351

352     /**
353      * Method setDataInitialCellSets the value of field
354      * 'dataInitialCell'.
355      *
356      * @param dataInitialCell the value of field 'dataInitialCell'.
357      */

358     public void setDataInitialCell(java.lang.String JavaDoc dataInitialCell)
359     {
360         this._dataInitialCell = dataInitialCell;
361     } //-- void setDataInitialCell(java.lang.String)
362

363     /**
364      * Method setDatePatternSets the value of field 'datePattern'.
365      *
366      * @param datePattern the value of field 'datePattern'.
367      */

368     public void setDatePattern(java.lang.String JavaDoc datePattern)
369     {
370         this._datePattern = datePattern;
371     } //-- void setDatePattern(java.lang.String)
372

373     /**
374      * Method setDateTimePatternSets the value of field
375      * 'dateTimePattern'.
376      *
377      * @param dateTimePattern the value of field 'dateTimePattern'.
378      */

379     public void setDateTimePattern(java.lang.String JavaDoc dateTimePattern)
380     {
381         this._dateTimePattern = dateTimePattern;
382     } //-- void setDateTimePattern(java.lang.String)
383

384     /**
385      * Method setExpressionSets the value of field 'expression'.
386      *
387      * @param expression the value of field 'expression'.
388      */

389     public void setExpression(java.lang.String JavaDoc expression)
390     {
391         this._expression = expression;
392     } //-- void setExpression(java.lang.String)
393

394     /**
395      * Method setExternalClassNameSets the value of field
396      * 'externalClassName'.
397      *
398      * @param externalClassName the value of field
399      * 'externalClassName'.
400      */

401     public void setExternalClassName(java.lang.String JavaDoc externalClassName)
402     {
403         this._externalClassName = externalClassName;
404     } //-- void setExternalClassName(java.lang.String)
405

406     /**
407      * Method setExternalConnectionClassNameSets the value of field
408      * 'externalConnectionClassName'.
409      *
410      * @param externalConnectionClassName the value of field
411      * 'externalConnectionClassName'.
412      */

413     public void setExternalConnectionClassName(java.lang.String JavaDoc externalConnectionClassName)
414     {
415         this._externalConnectionClassName = externalConnectionClassName;
416     } //-- void setExternalConnectionClassName(java.lang.String)
417

418     /**
419      * Method setExternalConnectionDistributedUrlSets the value of
420      * field 'externalConnectionDistributedUrl'.
421      *
422      * @param externalConnectionDistributedUrl the value of field
423      * 'externalConnectionDistributedUrl'.
424      */

425     public void setExternalConnectionDistributedUrl(java.lang.String JavaDoc externalConnectionDistributedUrl)
426     {
427         this._externalConnectionDistributedUrl = externalConnectionDistributedUrl;
428     } //-- void setExternalConnectionDistributedUrl(java.lang.String)
429

430     /**
431      * Method setExternalConnectionLocalUrlSets the value of field
432      * 'externalConnectionLocalUrl'.
433      *
434      * @param externalConnectionLocalUrl the value of field
435      * 'externalConnectionLocalUrl'.
436      */

437     public void setExternalConnectionLocalUrl(java.lang.String JavaDoc externalConnectionLocalUrl)
438     {
439         this._externalConnectionLocalUrl = externalConnectionLocalUrl;
440     } //-- void setExternalConnectionLocalUrl(java.lang.String)
441

442     /**
443      * Method setExternalConnectionPasswordSets the value of field
444      * 'externalConnectionPassword'.
445      *
446      * @param externalConnectionPassword the value of field
447      * 'externalConnectionPassword'.
448      */

449     public void setExternalConnectionPassword(java.lang.String JavaDoc externalConnectionPassword)
450     {
451         this._externalConnectionPassword = externalConnectionPassword;
452     } //-- void setExternalConnectionPassword(java.lang.String)
453

454     /**
455      * Method setExternalConnectionStringSets the value of field
456      * 'externalConnectionString'.
457      *
458      * @param externalConnectionString the value of field
459      * 'externalConnectionString'.
460      */

461     public void setExternalConnectionString(java.lang.String JavaDoc externalConnectionString)
462     {
463         this._externalConnectionString = externalConnectionString;
464     } //-- void setExternalConnectionString(java.lang.String)
465

466     /**
467      * Method setExternalConnectionUserSets the value of field
468      * 'externalConnectionUser'.
469      *
470      * @param externalConnectionUser the value of field
471      * 'externalConnectionUser'.
472      */

473     public void setExternalConnectionUser(java.lang.String JavaDoc externalConnectionUser)
474     {
475         this._externalConnectionUser = externalConnectionUser;
476     } //-- void setExternalConnectionUser(java.lang.String)
477

478     /**
479      * Method setExternalSourceDataSets the value of field
480      * 'externalSourceData'.
481      *
482      * @param externalSourceData the value of field
483      * 'externalSourceData'.
484      */

485     public void setExternalSourceData(java.lang.String JavaDoc externalSourceData)
486     {
487         this._externalSourceData = externalSourceData;
488     } //-- void setExternalSourceData(java.lang.String)
489

490     /**
491      * Method setNameSets the value of field 'name'.
492      *
493      * @param name the value of field 'name'.
494      */

495     public void setName(java.lang.String JavaDoc name)
496     {
497         this._name = name;
498     } //-- void setName(java.lang.String)
499

500     /**
501      * Method setSheetNameSets the value of field 'sheetName'.
502      *
503      * @param sheetName the value of field 'sheetName'.
504      */

505     public void setSheetName(java.lang.String JavaDoc sheetName)
506     {
507         this._sheetName = sheetName;
508     } //-- void setSheetName(java.lang.String)
509

510     /**
511      * Method setSourceTypeSets the value of field 'sourceType'.
512      *
513      * @param sourceType the value of field 'sourceType'.
514      */

515     public void setSourceType(com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType sourceType)
516     {
517         this._sourceType = sourceType;
518     } //-- void setSourceType(com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType)
519

520     /**
521      * Method unmarshal
522      *
523      * @param reader
524      */

525     public static com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition unmarshal(java.io.Reader JavaDoc reader)
526         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
527     {
528         return (com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition.class, reader);
529     } //-- com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition unmarshal(java.io.Reader)
530

531     /**
532      * Method validate
533      */

534     public void validate()
535         throws org.exolab.castor.xml.ValidationException
536     {
537         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
538         validator.validate(this);
539     } //-- void validate()
540

541 }
542
Popular Tags