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.DataSourceDefinitionSourceTypeType;
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 DataSourceDefinition.
027: *
028: * @version $Revision$ $Date$
029: */
030: public class DataSourceDefinition implements java.io.Serializable {
031:
032: //--------------------------/
033: //- Class/Member Variables -/
034: //--------------------------/
035:
036: /**
037: * Field _name
038: */
039: private java.lang.String _name;
040:
041: /**
042: * Field _sourceType
043: */
044: private com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType _sourceType;
045:
046: /**
047: * Field _expression
048: */
049: private java.lang.String _expression;
050:
051: /**
052: * Field _externalClassName
053: */
054: private java.lang.String _externalClassName;
055:
056: /**
057: * Field _externalSourceData
058: */
059: private java.lang.String _externalSourceData;
060:
061: /**
062: * Field _externalConnectionString
063: */
064: private java.lang.String _externalConnectionString;
065:
066: /**
067: * Field _externalConnectionClassName
068: */
069: private java.lang.String _externalConnectionClassName;
070:
071: /**
072: * Field _externalConnectionLocalUrl
073: */
074: private java.lang.String _externalConnectionLocalUrl;
075:
076: /**
077: * Field _externalConnectionDistributedUrl
078: */
079: private java.lang.String _externalConnectionDistributedUrl;
080:
081: /**
082: * Field _externalConnectionUser
083: */
084: private java.lang.String _externalConnectionUser;
085:
086: /**
087: * Field _externalConnectionPassword
088: */
089: private java.lang.String _externalConnectionPassword;
090:
091: /**
092: * Field _datePattern
093: */
094: private java.lang.String _datePattern;
095:
096: /**
097: * Field _dateTimePattern
098: */
099: private java.lang.String _dateTimePattern;
100:
101: /**
102: * Field _sheetName
103: */
104: private java.lang.String _sheetName;
105:
106: /**
107: * Field _dataInitialCell
108: */
109: private java.lang.String _dataInitialCell;
110:
111: /**
112: * Field _dataEndingCell
113: */
114: private java.lang.String _dataEndingCell;
115:
116: //----------------/
117: //- Constructors -/
118: //----------------/
119:
120: public DataSourceDefinition() {
121: super ();
122: } //-- com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition()
123:
124: //-----------/
125: //- Methods -/
126: //-----------/
127:
128: /**
129: * Method getDataEndingCellReturns the value of field
130: * 'dataEndingCell'.
131: *
132: * @return the value of field 'dataEndingCell'.
133: */
134: public java.lang.String getDataEndingCell() {
135: return this ._dataEndingCell;
136: } //-- java.lang.String getDataEndingCell()
137:
138: /**
139: * Method getDataInitialCellReturns the value of field
140: * 'dataInitialCell'.
141: *
142: * @return the value of field 'dataInitialCell'.
143: */
144: public java.lang.String getDataInitialCell() {
145: return this ._dataInitialCell;
146: } //-- java.lang.String getDataInitialCell()
147:
148: /**
149: * Method getDatePatternReturns the value of field
150: * 'datePattern'.
151: *
152: * @return the value of field 'datePattern'.
153: */
154: public java.lang.String getDatePattern() {
155: return this ._datePattern;
156: } //-- java.lang.String getDatePattern()
157:
158: /**
159: * Method getDateTimePatternReturns the value of field
160: * 'dateTimePattern'.
161: *
162: * @return the value of field 'dateTimePattern'.
163: */
164: public java.lang.String getDateTimePattern() {
165: return this ._dateTimePattern;
166: } //-- java.lang.String getDateTimePattern()
167:
168: /**
169: * Method getExpressionReturns the value of field 'expression'.
170: *
171: * @return the value of field 'expression'.
172: */
173: public java.lang.String getExpression() {
174: return this ._expression;
175: } //-- java.lang.String getExpression()
176:
177: /**
178: * Method getExternalClassNameReturns the value of field
179: * 'externalClassName'.
180: *
181: * @return the value of field 'externalClassName'.
182: */
183: public java.lang.String getExternalClassName() {
184: return this ._externalClassName;
185: } //-- java.lang.String getExternalClassName()
186:
187: /**
188: * Method getExternalConnectionClassNameReturns the value of
189: * field 'externalConnectionClassName'.
190: *
191: * @return the value of field 'externalConnectionClassName'.
192: */
193: public java.lang.String getExternalConnectionClassName() {
194: return this ._externalConnectionClassName;
195: } //-- java.lang.String getExternalConnectionClassName()
196:
197: /**
198: * Method getExternalConnectionDistributedUrlReturns the value
199: * of field 'externalConnectionDistributedUrl'.
200: *
201: * @return the value of field 'externalConnectionDistributedUrl'
202: */
203: public java.lang.String getExternalConnectionDistributedUrl() {
204: return this ._externalConnectionDistributedUrl;
205: } //-- java.lang.String getExternalConnectionDistributedUrl()
206:
207: /**
208: * Method getExternalConnectionLocalUrlReturns the value of
209: * field 'externalConnectionLocalUrl'.
210: *
211: * @return the value of field 'externalConnectionLocalUrl'.
212: */
213: public java.lang.String getExternalConnectionLocalUrl() {
214: return this ._externalConnectionLocalUrl;
215: } //-- java.lang.String getExternalConnectionLocalUrl()
216:
217: /**
218: * Method getExternalConnectionPasswordReturns the value of
219: * field 'externalConnectionPassword'.
220: *
221: * @return the value of field 'externalConnectionPassword'.
222: */
223: public java.lang.String getExternalConnectionPassword() {
224: return this ._externalConnectionPassword;
225: } //-- java.lang.String getExternalConnectionPassword()
226:
227: /**
228: * Method getExternalConnectionStringReturns the value of field
229: * 'externalConnectionString'.
230: *
231: * @return the value of field 'externalConnectionString'.
232: */
233: public java.lang.String getExternalConnectionString() {
234: return this ._externalConnectionString;
235: } //-- java.lang.String getExternalConnectionString()
236:
237: /**
238: * Method getExternalConnectionUserReturns the value of field
239: * 'externalConnectionUser'.
240: *
241: * @return the value of field 'externalConnectionUser'.
242: */
243: public java.lang.String getExternalConnectionUser() {
244: return this ._externalConnectionUser;
245: } //-- java.lang.String getExternalConnectionUser()
246:
247: /**
248: * Method getExternalSourceDataReturns the value of field
249: * 'externalSourceData'.
250: *
251: * @return the value of field 'externalSourceData'.
252: */
253: public java.lang.String getExternalSourceData() {
254: return this ._externalSourceData;
255: } //-- java.lang.String getExternalSourceData()
256:
257: /**
258: * Method getNameReturns the value of field 'name'.
259: *
260: * @return the value of field 'name'.
261: */
262: public java.lang.String getName() {
263: return this ._name;
264: } //-- java.lang.String getName()
265:
266: /**
267: * Method getSheetNameReturns the value of field 'sheetName'.
268: *
269: * @return the value of field 'sheetName'.
270: */
271: public java.lang.String getSheetName() {
272: return this ._sheetName;
273: } //-- java.lang.String getSheetName()
274:
275: /**
276: * Method getSourceTypeReturns the value of field 'sourceType'.
277: *
278: * @return the value of field 'sourceType'.
279: */
280: public com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType getSourceType() {
281: return this ._sourceType;
282: } //-- com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType getSourceType()
283:
284: /**
285: * Method isValid
286: */
287: public boolean isValid() {
288: try {
289: validate();
290: } catch (org.exolab.castor.xml.ValidationException vex) {
291: return false;
292: }
293: return true;
294: } //-- boolean isValid()
295:
296: /**
297: * Method marshal
298: *
299: * @param out
300: */
301: public void marshal(java.io.Writer out)
302: throws org.exolab.castor.xml.MarshalException,
303: org.exolab.castor.xml.ValidationException {
304:
305: Marshaller.marshal(this , out);
306: } //-- void marshal(java.io.Writer)
307:
308: /**
309: * Method marshal
310: *
311: * @param handler
312: */
313: public void marshal(org.xml.sax.ContentHandler handler)
314: throws java.io.IOException,
315: org.exolab.castor.xml.MarshalException,
316: org.exolab.castor.xml.ValidationException {
317:
318: Marshaller.marshal(this , handler);
319: } //-- void marshal(org.xml.sax.ContentHandler)
320:
321: /**
322: * Method setDataEndingCellSets the value of field
323: * 'dataEndingCell'.
324: *
325: * @param dataEndingCell the value of field 'dataEndingCell'.
326: */
327: public void setDataEndingCell(java.lang.String dataEndingCell) {
328: this ._dataEndingCell = dataEndingCell;
329: } //-- void setDataEndingCell(java.lang.String)
330:
331: /**
332: * Method setDataInitialCellSets the value of field
333: * 'dataInitialCell'.
334: *
335: * @param dataInitialCell the value of field 'dataInitialCell'.
336: */
337: public void setDataInitialCell(java.lang.String dataInitialCell) {
338: this ._dataInitialCell = dataInitialCell;
339: } //-- void setDataInitialCell(java.lang.String)
340:
341: /**
342: * Method setDatePatternSets the value of field 'datePattern'.
343: *
344: * @param datePattern the value of field 'datePattern'.
345: */
346: public void setDatePattern(java.lang.String datePattern) {
347: this ._datePattern = datePattern;
348: } //-- void setDatePattern(java.lang.String)
349:
350: /**
351: * Method setDateTimePatternSets the value of field
352: * 'dateTimePattern'.
353: *
354: * @param dateTimePattern the value of field 'dateTimePattern'.
355: */
356: public void setDateTimePattern(java.lang.String dateTimePattern) {
357: this ._dateTimePattern = dateTimePattern;
358: } //-- void setDateTimePattern(java.lang.String)
359:
360: /**
361: * Method setExpressionSets the value of field 'expression'.
362: *
363: * @param expression the value of field 'expression'.
364: */
365: public void setExpression(java.lang.String expression) {
366: this ._expression = expression;
367: } //-- void setExpression(java.lang.String)
368:
369: /**
370: * Method setExternalClassNameSets the value of field
371: * 'externalClassName'.
372: *
373: * @param externalClassName the value of field
374: * 'externalClassName'.
375: */
376: public void setExternalClassName(java.lang.String externalClassName) {
377: this ._externalClassName = externalClassName;
378: } //-- void setExternalClassName(java.lang.String)
379:
380: /**
381: * Method setExternalConnectionClassNameSets the value of field
382: * 'externalConnectionClassName'.
383: *
384: * @param externalConnectionClassName the value of field
385: * 'externalConnectionClassName'.
386: */
387: public void setExternalConnectionClassName(
388: java.lang.String externalConnectionClassName) {
389: this ._externalConnectionClassName = externalConnectionClassName;
390: } //-- void setExternalConnectionClassName(java.lang.String)
391:
392: /**
393: * Method setExternalConnectionDistributedUrlSets the value of
394: * field 'externalConnectionDistributedUrl'.
395: *
396: * @param externalConnectionDistributedUrl the value of field
397: * 'externalConnectionDistributedUrl'.
398: */
399: public void setExternalConnectionDistributedUrl(
400: java.lang.String externalConnectionDistributedUrl) {
401: this ._externalConnectionDistributedUrl = externalConnectionDistributedUrl;
402: } //-- void setExternalConnectionDistributedUrl(java.lang.String)
403:
404: /**
405: * Method setExternalConnectionLocalUrlSets the value of field
406: * 'externalConnectionLocalUrl'.
407: *
408: * @param externalConnectionLocalUrl the value of field
409: * 'externalConnectionLocalUrl'.
410: */
411: public void setExternalConnectionLocalUrl(
412: java.lang.String externalConnectionLocalUrl) {
413: this ._externalConnectionLocalUrl = externalConnectionLocalUrl;
414: } //-- void setExternalConnectionLocalUrl(java.lang.String)
415:
416: /**
417: * Method setExternalConnectionPasswordSets the value of field
418: * 'externalConnectionPassword'.
419: *
420: * @param externalConnectionPassword the value of field
421: * 'externalConnectionPassword'.
422: */
423: public void setExternalConnectionPassword(
424: java.lang.String externalConnectionPassword) {
425: this ._externalConnectionPassword = externalConnectionPassword;
426: } //-- void setExternalConnectionPassword(java.lang.String)
427:
428: /**
429: * Method setExternalConnectionStringSets the value of field
430: * 'externalConnectionString'.
431: *
432: * @param externalConnectionString the value of field
433: * 'externalConnectionString'.
434: */
435: public void setExternalConnectionString(
436: java.lang.String externalConnectionString) {
437: this ._externalConnectionString = externalConnectionString;
438: } //-- void setExternalConnectionString(java.lang.String)
439:
440: /**
441: * Method setExternalConnectionUserSets the value of field
442: * 'externalConnectionUser'.
443: *
444: * @param externalConnectionUser the value of field
445: * 'externalConnectionUser'.
446: */
447: public void setExternalConnectionUser(
448: java.lang.String externalConnectionUser) {
449: this ._externalConnectionUser = externalConnectionUser;
450: } //-- void setExternalConnectionUser(java.lang.String)
451:
452: /**
453: * Method setExternalSourceDataSets the value of field
454: * 'externalSourceData'.
455: *
456: * @param externalSourceData the value of field
457: * 'externalSourceData'.
458: */
459: public void setExternalSourceData(
460: java.lang.String externalSourceData) {
461: this ._externalSourceData = externalSourceData;
462: } //-- void setExternalSourceData(java.lang.String)
463:
464: /**
465: * Method setNameSets the value of field 'name'.
466: *
467: * @param name the value of field 'name'.
468: */
469: public void setName(java.lang.String name) {
470: this ._name = name;
471: } //-- void setName(java.lang.String)
472:
473: /**
474: * Method setSheetNameSets the value of field 'sheetName'.
475: *
476: * @param sheetName the value of field 'sheetName'.
477: */
478: public void setSheetName(java.lang.String sheetName) {
479: this ._sheetName = sheetName;
480: } //-- void setSheetName(java.lang.String)
481:
482: /**
483: * Method setSourceTypeSets the value of field 'sourceType'.
484: *
485: * @param sourceType the value of field 'sourceType'.
486: */
487: public void setSourceType(
488: com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType sourceType) {
489: this ._sourceType = sourceType;
490: } //-- void setSourceType(com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType)
491:
492: /**
493: * Method unmarshal
494: *
495: * @param reader
496: */
497: public static com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition unmarshal(
498: java.io.Reader reader)
499: throws org.exolab.castor.xml.MarshalException,
500: org.exolab.castor.xml.ValidationException {
501: return (com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition) Unmarshaller
502: .unmarshal(
503: com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition.class,
504: reader);
505: } //-- com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition unmarshal(java.io.Reader)
506:
507: /**
508: * Method validate
509: */
510: public void validate()
511: throws org.exolab.castor.xml.ValidationException {
512: org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
513: validator.validate(this );
514: } //-- void validate()
515:
516: }
|