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 ParameterBind.
026: *
027: * @version $Revision$ $Date$
028: */
029: public class ParameterBind implements java.io.Serializable {
030:
031: //--------------------------/
032: //- Class/Member Variables -/
033: //--------------------------/
034:
035: /**
036: * Field _sourceFilterName
037: */
038: private java.lang.String _sourceFilterName;
039:
040: /**
041: * Field _sourceParameterName
042: */
043: private java.lang.String _sourceParameterName;
044:
045: /**
046: * Field _targetFilterName
047: */
048: private java.lang.String _targetFilterName;
049:
050: /**
051: * Field _targetParameterName
052: */
053: private java.lang.String _targetParameterName;
054:
055: //----------------/
056: //- Constructors -/
057: //----------------/
058:
059: public ParameterBind() {
060: super ();
061: } //-- com.calipso.reportgenerator.reportdefinitions.ParameterBind()
062:
063: //-----------/
064: //- Methods -/
065: //-----------/
066:
067: /**
068: * Method getSourceFilterNameReturns the value of field
069: * 'sourceFilterName'.
070: *
071: * @return the value of field 'sourceFilterName'.
072: */
073: public java.lang.String getSourceFilterName() {
074: return this ._sourceFilterName;
075: } //-- java.lang.String getSourceFilterName()
076:
077: /**
078: * Method getSourceParameterNameReturns the value of field
079: * 'sourceParameterName'.
080: *
081: * @return the value of field 'sourceParameterName'.
082: */
083: public java.lang.String getSourceParameterName() {
084: return this ._sourceParameterName;
085: } //-- java.lang.String getSourceParameterName()
086:
087: /**
088: * Method getTargetFilterNameReturns the value of field
089: * 'targetFilterName'.
090: *
091: * @return the value of field 'targetFilterName'.
092: */
093: public java.lang.String getTargetFilterName() {
094: return this ._targetFilterName;
095: } //-- java.lang.String getTargetFilterName()
096:
097: /**
098: * Method getTargetParameterNameReturns the value of field
099: * 'targetParameterName'.
100: *
101: * @return the value of field 'targetParameterName'.
102: */
103: public java.lang.String getTargetParameterName() {
104: return this ._targetParameterName;
105: } //-- java.lang.String getTargetParameterName()
106:
107: /**
108: * Method isValid
109: */
110: public boolean isValid() {
111: try {
112: validate();
113: } catch (org.exolab.castor.xml.ValidationException vex) {
114: return false;
115: }
116: return true;
117: } //-- boolean isValid()
118:
119: /**
120: * Method marshal
121: *
122: * @param out
123: */
124: public void marshal(java.io.Writer out)
125: throws org.exolab.castor.xml.MarshalException,
126: org.exolab.castor.xml.ValidationException {
127:
128: Marshaller.marshal(this , out);
129: } //-- void marshal(java.io.Writer)
130:
131: /**
132: * Method marshal
133: *
134: * @param handler
135: */
136: public void marshal(org.xml.sax.ContentHandler handler)
137: throws java.io.IOException,
138: org.exolab.castor.xml.MarshalException,
139: org.exolab.castor.xml.ValidationException {
140:
141: Marshaller.marshal(this , handler);
142: } //-- void marshal(org.xml.sax.ContentHandler)
143:
144: /**
145: * Method setSourceFilterNameSets the value of field
146: * 'sourceFilterName'.
147: *
148: * @param sourceFilterName the value of field 'sourceFilterName'
149: */
150: public void setSourceFilterName(java.lang.String sourceFilterName) {
151: this ._sourceFilterName = sourceFilterName;
152: } //-- void setSourceFilterName(java.lang.String)
153:
154: /**
155: * Method setSourceParameterNameSets the value of field
156: * 'sourceParameterName'.
157: *
158: * @param sourceParameterName the value of field
159: * 'sourceParameterName'.
160: */
161: public void setSourceParameterName(
162: java.lang.String sourceParameterName) {
163: this ._sourceParameterName = sourceParameterName;
164: } //-- void setSourceParameterName(java.lang.String)
165:
166: /**
167: * Method setTargetFilterNameSets the value of field
168: * 'targetFilterName'.
169: *
170: * @param targetFilterName the value of field 'targetFilterName'
171: */
172: public void setTargetFilterName(java.lang.String targetFilterName) {
173: this ._targetFilterName = targetFilterName;
174: } //-- void setTargetFilterName(java.lang.String)
175:
176: /**
177: * Method setTargetParameterNameSets the value of field
178: * 'targetParameterName'.
179: *
180: * @param targetParameterName the value of field
181: * 'targetParameterName'.
182: */
183: public void setTargetParameterName(
184: java.lang.String targetParameterName) {
185: this ._targetParameterName = targetParameterName;
186: } //-- void setTargetParameterName(java.lang.String)
187:
188: /**
189: * Method unmarshal
190: *
191: * @param reader
192: */
193: public static com.calipso.reportgenerator.reportdefinitions.ParameterBind unmarshal(
194: java.io.Reader reader)
195: throws org.exolab.castor.xml.MarshalException,
196: org.exolab.castor.xml.ValidationException {
197: return (com.calipso.reportgenerator.reportdefinitions.ParameterBind) Unmarshaller
198: .unmarshal(
199: com.calipso.reportgenerator.reportdefinitions.ParameterBind.class,
200: reader);
201: } //-- com.calipso.reportgenerator.reportdefinitions.ParameterBind unmarshal(java.io.Reader)
202:
203: /**
204: * Method validate
205: */
206: public void validate()
207: throws org.exolab.castor.xml.ValidationException {
208: org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
209: validator.validate(this );
210: } //-- void validate()
211:
212: }
|