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 ReportView implements java.io.Serializable { 30 31 32 36 39 private java.lang.String _id; 40 41 44 private java.lang.String _description; 45 46 49 private java.lang.String _reportDefinitionId; 50 51 54 private java.lang.String _userID; 55 56 59 private java.lang.String _userName; 60 61 64 private java.lang.String _reportLayout; 65 66 69 private boolean _visibleTotals = true; 70 71 74 private boolean _has_visibleTotals; 75 76 79 private boolean _default = false; 80 81 84 private boolean _has_default; 85 86 89 private com.calipso.reportgenerator.reportdefinitions.ViewParameterValues _viewParameterValues; 90 91 94 private com.calipso.reportgenerator.reportdefinitions.DimensionProperties _dimensionProperties; 95 96 99 private com.calipso.reportgenerator.reportdefinitions.MetricProperties _metricProperties; 100 101 104 private com.calipso.reportgenerator.reportdefinitions.LightBoxer _lightBoxer; 105 106 107 111 public ReportView() { 112 super(); 113 } 115 116 120 123 public void deleteDefault() 124 { 125 this._has_default= false; 126 } 128 131 public void deleteVisibleTotals() 132 { 133 this._has_visibleTotals= false; 134 } 136 141 public boolean getDefault() 142 { 143 return this._default; 144 } 146 152 public java.lang.String getDescription() 153 { 154 return this._description; 155 } 157 163 public com.calipso.reportgenerator.reportdefinitions.DimensionProperties getDimensionProperties() 164 { 165 return this._dimensionProperties; 166 } 168 173 public java.lang.String getId() 174 { 175 return this._id; 176 } 178 183 public com.calipso.reportgenerator.reportdefinitions.LightBoxer getLightBoxer() 184 { 185 return this._lightBoxer; 186 } 188 194 public com.calipso.reportgenerator.reportdefinitions.MetricProperties getMetricProperties() 195 { 196 return this._metricProperties; 197 } 199 205 public java.lang.String getReportDefinitionId() 206 { 207 return this._reportDefinitionId; 208 } 210 216 public java.lang.String getReportLayout() 217 { 218 return this._reportLayout; 219 } 221 226 public java.lang.String getUserID() 227 { 228 return this._userID; 229 } 231 236 public java.lang.String getUserName() 237 { 238 return this._userName; 239 } 241 247 public com.calipso.reportgenerator.reportdefinitions.ViewParameterValues getViewParameterValues() 248 { 249 return this._viewParameterValues; 250 } 252 258 public boolean getVisibleTotals() 259 { 260 return this._visibleTotals; 261 } 263 266 public boolean hasDefault() 267 { 268 return this._has_default; 269 } 271 274 public boolean hasVisibleTotals() 275 { 276 return this._has_visibleTotals; 277 } 279 282 public boolean isValid() 283 { 284 try { 285 validate(); 286 } 287 catch (org.exolab.castor.xml.ValidationException vex) { 288 return false; 289 } 290 return true; 291 } 293 298 public void marshal(java.io.Writer out) 299 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 300 { 301 302 Marshaller.marshal(this, out); 303 } 305 310 public void marshal(org.xml.sax.ContentHandler handler) 311 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 312 { 313 314 Marshaller.marshal(this, handler); 315 } 317 323 public void setDefault(boolean _default) 324 { 325 this._default = _default; 326 this._has_default = true; 327 } 329 334 public void setDescription(java.lang.String description) 335 { 336 this._description = description; 337 } 339 346 public void setDimensionProperties(com.calipso.reportgenerator.reportdefinitions.DimensionProperties dimensionProperties) 347 { 348 this._dimensionProperties = dimensionProperties; 349 } 351 356 public void setId(java.lang.String id) 357 { 358 this._id = id; 359 } 361 366 public void setLightBoxer(com.calipso.reportgenerator.reportdefinitions.LightBoxer lightBoxer) 367 { 368 this._lightBoxer = lightBoxer; 369 } 371 377 public void setMetricProperties(com.calipso.reportgenerator.reportdefinitions.MetricProperties metricProperties) 378 { 379 this._metricProperties = metricProperties; 380 } 382 389 public void setReportDefinitionId(java.lang.String reportDefinitionId) 390 { 391 this._reportDefinitionId = reportDefinitionId; 392 } 394 400 public void setReportLayout(java.lang.String reportLayout) 401 { 402 this._reportLayout = reportLayout; 403 } 405 410 public void setUserID(java.lang.String userID) 411 { 412 this._userID = userID; 413 } 415 420 public void setUserName(java.lang.String userName) 421 { 422 this._userName = userName; 423 } 425 432 public void setViewParameterValues(com.calipso.reportgenerator.reportdefinitions.ViewParameterValues viewParameterValues) 433 { 434 this._viewParameterValues = viewParameterValues; 435 } 437 443 public void setVisibleTotals(boolean visibleTotals) 444 { 445 this._visibleTotals = visibleTotals; 446 this._has_visibleTotals = true; 447 } 449 454 public static com.calipso.reportgenerator.reportdefinitions.ReportView unmarshal(java.io.Reader reader) 455 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 456 { 457 return (com.calipso.reportgenerator.reportdefinitions.ReportView) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.ReportView.class, reader); 458 } 460 463 public void validate() 464 throws org.exolab.castor.xml.ValidationException 465 { 466 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 467 validator.validate(this); 468 } 470 } 471 | Popular Tags |