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 DimensionBind implements java.io.Serializable { 30 31 32 36 39 private java.lang.String _sourceDimensionName; 40 41 44 private java.lang.String _targetFilterName; 45 46 49 private java.lang.String _targetParameterName; 50 51 52 56 public DimensionBind() { 57 super(); 58 } 60 61 65 71 public java.lang.String getSourceDimensionName() 72 { 73 return this._sourceDimensionName; 74 } 76 82 public java.lang.String getTargetFilterName() 83 { 84 return this._targetFilterName; 85 } 87 93 public java.lang.String getTargetParameterName() 94 { 95 return this._targetParameterName; 96 } 98 101 public boolean isValid() 102 { 103 try { 104 validate(); 105 } 106 catch (org.exolab.castor.xml.ValidationException vex) { 107 return false; 108 } 109 return true; 110 } 112 117 public void marshal(java.io.Writer out) 118 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 119 { 120 121 Marshaller.marshal(this, out); 122 } 124 129 public void marshal(org.xml.sax.ContentHandler handler) 130 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 131 { 132 133 Marshaller.marshal(this, handler); 134 } 136 143 public void setSourceDimensionName(java.lang.String sourceDimensionName) 144 { 145 this._sourceDimensionName = sourceDimensionName; 146 } 148 154 public void setTargetFilterName(java.lang.String targetFilterName) 155 { 156 this._targetFilterName = targetFilterName; 157 } 159 166 public void setTargetParameterName(java.lang.String targetParameterName) 167 { 168 this._targetParameterName = targetParameterName; 169 } 171 176 public static com.calipso.reportgenerator.reportdefinitions.DimensionBind unmarshal(java.io.Reader reader) 177 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 178 { 179 return (com.calipso.reportgenerator.reportdefinitions.DimensionBind) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.DimensionBind.class, reader); 180 } 182 185 public void validate() 186 throws org.exolab.castor.xml.ValidationException 187 { 188 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 189 validator.validate(this); 190 } 192 } 193 | Popular Tags |