1 7 8 package com.calipso.reportgenerator.reportdefinitions; 9 10 14 import com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType; 15 import com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType; 16 import java.io.IOException ; 17 import java.io.Reader ; 18 import java.io.Serializable ; 19 import java.io.Writer ; 20 import org.exolab.castor.xml.MarshalException; 21 import org.exolab.castor.xml.Marshaller; 22 import org.exolab.castor.xml.Unmarshaller; 23 import org.exolab.castor.xml.ValidationException; 24 import org.xml.sax.ContentHandler ; 25 26 31 public class LightBoxDefinition implements java.io.Serializable { 32 33 34 38 41 private java.lang.String _metricName; 42 43 46 private com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType _type; 47 48 51 private com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType _parameter; 52 53 56 private int _colorRed; 57 58 61 private boolean _has_colorRed; 62 63 66 private int _colorGreen; 67 68 71 private boolean _has_colorGreen; 72 73 76 private int _colorBlue; 77 78 81 private boolean _has_colorBlue; 82 83 86 private java.lang.String _value; 87 88 89 93 public LightBoxDefinition() { 94 super(); 95 } 97 98 102 107 public int getColorBlue() 108 { 109 return this._colorBlue; 110 } 112 117 public int getColorGreen() 118 { 119 return this._colorGreen; 120 } 122 127 public int getColorRed() 128 { 129 return this._colorRed; 130 } 132 137 public java.lang.String getMetricName() 138 { 139 return this._metricName; 140 } 142 147 public com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType getParameter() 148 { 149 return this._parameter; 150 } 152 157 public com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType getType() 158 { 159 return this._type; 160 } 162 167 public java.lang.String getValue() 168 { 169 return this._value; 170 } 172 175 public boolean hasColorBlue() 176 { 177 return this._has_colorBlue; 178 } 180 183 public boolean hasColorGreen() 184 { 185 return this._has_colorGreen; 186 } 188 191 public boolean hasColorRed() 192 { 193 return this._has_colorRed; 194 } 196 199 public boolean isValid() 200 { 201 try { 202 validate(); 203 } 204 catch (org.exolab.castor.xml.ValidationException vex) { 205 return false; 206 } 207 return true; 208 } 210 215 public void marshal(java.io.Writer out) 216 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 217 { 218 219 Marshaller.marshal(this, out); 220 } 222 227 public void marshal(org.xml.sax.ContentHandler handler) 228 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 229 { 230 231 Marshaller.marshal(this, handler); 232 } 234 239 public void setColorBlue(int colorBlue) 240 { 241 this._colorBlue = colorBlue; 242 this._has_colorBlue = true; 243 } 245 250 public void setColorGreen(int colorGreen) 251 { 252 this._colorGreen = colorGreen; 253 this._has_colorGreen = true; 254 } 256 261 public void setColorRed(int colorRed) 262 { 263 this._colorRed = colorRed; 264 this._has_colorRed = true; 265 } 267 272 public void setMetricName(java.lang.String metricName) 273 { 274 this._metricName = metricName; 275 } 277 282 public void setParameter(com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType parameter) 283 { 284 this._parameter = parameter; 285 } 287 292 public void setType(com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType type) 293 { 294 this._type = type; 295 } 297 302 public void setValue(java.lang.String value) 303 { 304 this._value = value; 305 } 307 312 public static com.calipso.reportgenerator.reportdefinitions.LightBoxDefinition unmarshal(java.io.Reader reader) 313 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 314 { 315 return (com.calipso.reportgenerator.reportdefinitions.LightBoxDefinition) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.LightBoxDefinition.class, reader); 316 } 318 321 public void validate() 322 throws org.exolab.castor.xml.ValidationException 323 { 324 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 325 validator.validate(this); 326 } 328 } 329 | Popular Tags |