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