1 7 8 package com.calipso.reportgenerator.reportdefinitions; 9 10 14 import java.io.IOException ; 15 import java.io.Reader ; 16 import java.io.Serializable ; 17 import java.io.Writer ; 18 import org.exolab.castor.xml.MarshalException; 19 import org.exolab.castor.xml.Marshaller; 20 import org.exolab.castor.xml.Unmarshaller; 21 import org.exolab.castor.xml.ValidationException; 22 import org.xml.sax.ContentHandler ; 23 24 29 public class ParameterBind implements java.io.Serializable { 30 31 32 36 39 private java.lang.String _sourceFilterName; 40 41 44 private java.lang.String _sourceParameterName; 45 46 49 private java.lang.String _targetFilterName; 50 51 54 private java.lang.String _targetParameterName; 55 56 57 61 public ParameterBind() { 62 super(); 63 } 65 66 70 76 public java.lang.String getSourceFilterName() 77 { 78 return this._sourceFilterName; 79 } 81 87 public java.lang.String getSourceParameterName() 88 { 89 return this._sourceParameterName; 90 } 92 98 public java.lang.String getTargetFilterName() 99 { 100 return this._targetFilterName; 101 } 103 109 public java.lang.String getTargetParameterName() 110 { 111 return this._targetParameterName; 112 } 114 117 public boolean isValid() 118 { 119 try { 120 validate(); 121 } 122 catch (org.exolab.castor.xml.ValidationException vex) { 123 return false; 124 } 125 return true; 126 } 128 133 public void marshal(java.io.Writer out) 134 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 135 { 136 137 Marshaller.marshal(this, out); 138 } 140 145 public void marshal(org.xml.sax.ContentHandler handler) 146 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 147 { 148 149 Marshaller.marshal(this, handler); 150 } 152 158 public void setSourceFilterName(java.lang.String sourceFilterName) 159 { 160 this._sourceFilterName = sourceFilterName; 161 } 163 170 public void setSourceParameterName(java.lang.String sourceParameterName) 171 { 172 this._sourceParameterName = sourceParameterName; 173 } 175 181 public void setTargetFilterName(java.lang.String targetFilterName) 182 { 183 this._targetFilterName = targetFilterName; 184 } 186 193 public void setTargetParameterName(java.lang.String targetParameterName) 194 { 195 this._targetParameterName = targetParameterName; 196 } 198 203 public static com.calipso.reportgenerator.reportdefinitions.ParameterBind unmarshal(java.io.Reader reader) 204 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 205 { 206 return (com.calipso.reportgenerator.reportdefinitions.ParameterBind) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.ParameterBind.class, reader); 207 } 209 212 public void validate() 213 throws org.exolab.castor.xml.ValidationException 214 { 215 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 216 validator.validate(this); 217 } 219 } 220 | Popular Tags |