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 java.math.BigDecimal ; 19 import org.exolab.castor.xml.MarshalException; 20 import org.exolab.castor.xml.Marshaller; 21 import org.exolab.castor.xml.Unmarshaller; 22 import org.exolab.castor.xml.ValidationException; 23 import org.xml.sax.ContentHandler ; 24 25 30 public class ReportSourceDefinition implements java.io.Serializable { 31 32 33 37 40 private java.lang.String _id; 41 42 45 private boolean _cached; 46 47 50 private boolean _has_cached; 51 52 55 private java.math.BigDecimal _expiration; 56 57 60 private java.lang.String _incrementalDimension; 61 62 65 private boolean _multilanguage = false; 66 67 70 private boolean _has_multilanguage; 71 72 75 private java.lang.String _maxRowsDimensionReference; 76 77 80 private int _maxRowCount; 81 82 85 private boolean _has_maxRowCount; 86 87 90 private boolean _datawarehouseSaved; 91 92 95 private boolean _has_datawarehouseSaved; 96 97 100 private com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions _dimensionSourceDefinitions; 101 102 105 private com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions _metricSourceDefinitions; 106 107 110 private com.calipso.reportgenerator.reportdefinitions.FilterDefinitions _filterDefinitions; 111 112 115 private com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions _dataSourceDefinitions; 116 117 120 private com.calipso.reportgenerator.reportdefinitions.ParameterValues _parameterValues; 121 122 125 private com.calipso.reportgenerator.reportdefinitions.Localizations _localizations; 126 127 128 132 public ReportSourceDefinition() { 133 super(); 134 } 136 137 141 144 public void deleteDatawarehouseSaved() 145 { 146 this._has_datawarehouseSaved= false; 147 } 149 152 public void deleteMaxRowCount() 153 { 154 this._has_maxRowCount= false; 155 } 157 160 public void deleteMultilanguage() 161 { 162 this._has_multilanguage= false; 163 } 165 170 public boolean getCached() 171 { 172 return this._cached; 173 } 175 181 public com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions getDataSourceDefinitions() 182 { 183 return this._dataSourceDefinitions; 184 } 186 192 public boolean getDatawarehouseSaved() 193 { 194 return this._datawarehouseSaved; 195 } 197 203 public com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions getDimensionSourceDefinitions() 204 { 205 return this._dimensionSourceDefinitions; 206 } 208 213 public java.math.BigDecimal getExpiration() 214 { 215 return this._expiration; 216 } 218 224 public com.calipso.reportgenerator.reportdefinitions.FilterDefinitions getFilterDefinitions() 225 { 226 return this._filterDefinitions; 227 } 229 234 public java.lang.String getId() 235 { 236 return this._id; 237 } 239 245 public java.lang.String getIncrementalDimension() 246 { 247 return this._incrementalDimension; 248 } 250 256 public com.calipso.reportgenerator.reportdefinitions.Localizations getLocalizations() 257 { 258 return this._localizations; 259 } 261 267 public int getMaxRowCount() 268 { 269 return this._maxRowCount; 270 } 272 278 public java.lang.String getMaxRowsDimensionReference() 279 { 280 return this._maxRowsDimensionReference; 281 } 283 289 public com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions getMetricSourceDefinitions() 290 { 291 return this._metricSourceDefinitions; 292 } 294 300 public boolean getMultilanguage() 301 { 302 return this._multilanguage; 303 } 305 311 public com.calipso.reportgenerator.reportdefinitions.ParameterValues getParameterValues() 312 { 313 return this._parameterValues; 314 } 316 319 public boolean hasCached() 320 { 321 return this._has_cached; 322 } 324 327 public boolean hasDatawarehouseSaved() 328 { 329 return this._has_datawarehouseSaved; 330 } 332 335 public boolean hasMaxRowCount() 336 { 337 return this._has_maxRowCount; 338 } 340 343 public boolean hasMultilanguage() 344 { 345 return this._has_multilanguage; 346 } 348 351 public boolean isValid() 352 { 353 try { 354 validate(); 355 } 356 catch (org.exolab.castor.xml.ValidationException vex) { 357 return false; 358 } 359 return true; 360 } 362 367 public void marshal(java.io.Writer out) 368 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 369 { 370 371 Marshaller.marshal(this, out); 372 } 374 379 public void marshal(org.xml.sax.ContentHandler handler) 380 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 381 { 382 383 Marshaller.marshal(this, handler); 384 } 386 391 public void setCached(boolean cached) 392 { 393 this._cached = cached; 394 this._has_cached = true; 395 } 397 404 public void setDataSourceDefinitions(com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions dataSourceDefinitions) 405 { 406 this._dataSourceDefinitions = dataSourceDefinitions; 407 } 409 416 public void setDatawarehouseSaved(boolean datawarehouseSaved) 417 { 418 this._datawarehouseSaved = datawarehouseSaved; 419 this._has_datawarehouseSaved = true; 420 } 422 429 public void setDimensionSourceDefinitions(com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions dimensionSourceDefinitions) 430 { 431 this._dimensionSourceDefinitions = dimensionSourceDefinitions; 432 } 434 439 public void setExpiration(java.math.BigDecimal expiration) 440 { 441 this._expiration = expiration; 442 } 444 451 public void setFilterDefinitions(com.calipso.reportgenerator.reportdefinitions.FilterDefinitions filterDefinitions) 452 { 453 this._filterDefinitions = filterDefinitions; 454 } 456 461 public void setId(java.lang.String id) 462 { 463 this._id = id; 464 } 466 473 public void setIncrementalDimension(java.lang.String incrementalDimension) 474 { 475 this._incrementalDimension = incrementalDimension; 476 } 478 484 public void setLocalizations(com.calipso.reportgenerator.reportdefinitions.Localizations localizations) 485 { 486 this._localizations = localizations; 487 } 489 494 public void setMaxRowCount(int maxRowCount) 495 { 496 this._maxRowCount = maxRowCount; 497 this._has_maxRowCount = true; 498 } 500 507 public void setMaxRowsDimensionReference(java.lang.String maxRowsDimensionReference) 508 { 509 this._maxRowsDimensionReference = maxRowsDimensionReference; 510 } 512 519 public void setMetricSourceDefinitions(com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions metricSourceDefinitions) 520 { 521 this._metricSourceDefinitions = metricSourceDefinitions; 522 } 524 530 public void setMultilanguage(boolean multilanguage) 531 { 532 this._multilanguage = multilanguage; 533 this._has_multilanguage = true; 534 } 536 542 public void setParameterValues(com.calipso.reportgenerator.reportdefinitions.ParameterValues parameterValues) 543 { 544 this._parameterValues = parameterValues; 545 } 547 552 public static com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition unmarshal(java.io.Reader reader) 553 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 554 { 555 return (com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition.class, reader); 556 } 558 561 public void validate() 562 throws org.exolab.castor.xml.ValidationException 563 { 564 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 565 validator.validate(this); 566 } 568 } 569 | Popular Tags |