1 7 8 package com.calipso.reportgenerator.reportdefinitions; 9 10 14 import com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType; 15 import java.io.IOException ; 16 import java.io.Reader ; 17 import java.io.Serializable ; 18 import java.io.Writer ; 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 ReportDefinition implements java.io.Serializable { 31 32 33 37 40 private java.lang.String _id; 41 42 45 private java.lang.String _description; 46 47 50 private java.lang.String _reportSource; 51 52 55 private java.lang.String _entity; 56 57 60 private boolean _isTransient; 61 62 65 private boolean _has_isTransient; 66 67 70 private java.lang.String _infoPage; 71 72 75 private com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType _reportType; 76 77 80 private java.lang.String _title; 81 82 85 private java.lang.String _pageHeding; 86 87 90 private java.lang.String _pageFooter; 91 92 95 private boolean _multilanguage = false; 96 97 100 private boolean _has_multilanguage; 101 102 105 private java.lang.String _maxRowsDimensionReference; 106 107 110 private int _maxRowCount; 111 112 115 private boolean _has_maxRowCount; 116 117 120 private boolean _visibleTotals = true; 121 122 125 private boolean _has_visibleTotals; 126 127 130 private java.lang.String _layoutDesign; 131 132 135 private com.calipso.reportgenerator.reportdefinitions.Roles _roles; 136 137 140 private com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions _dimensionDefinitions; 141 142 145 private com.calipso.reportgenerator.reportdefinitions.MetricDefinitions _metricDefinitions; 146 147 150 private com.calipso.reportgenerator.reportdefinitions.ActionDefinitions _actionDefinitions; 151 152 155 private com.calipso.reportgenerator.reportdefinitions.FilterDefinitions _filterDefinitions; 156 157 160 private com.calipso.reportgenerator.reportdefinitions.ParameterValues _parameterValues; 161 162 165 private com.calipso.reportgenerator.reportdefinitions.Localizations _localizations; 166 167 170 private com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions _drillDownDefinitions; 171 172 173 177 public ReportDefinition() { 178 super(); 179 } 181 182 186 189 public void deleteMaxRowCount() 190 { 191 this._has_maxRowCount= false; 192 } 194 197 public void deleteMultilanguage() 198 { 199 this._has_multilanguage= false; 200 } 202 205 public void deleteVisibleTotals() 206 { 207 this._has_visibleTotals= false; 208 } 210 216 public com.calipso.reportgenerator.reportdefinitions.ActionDefinitions getActionDefinitions() 217 { 218 return this._actionDefinitions; 219 } 221 227 public java.lang.String getDescription() 228 { 229 return this._description; 230 } 232 238 public com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions getDimensionDefinitions() 239 { 240 return this._dimensionDefinitions; 241 } 243 249 public com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions getDrillDownDefinitions() 250 { 251 return this._drillDownDefinitions; 252 } 254 259 public java.lang.String getEntity() 260 { 261 return this._entity; 262 } 264 270 public com.calipso.reportgenerator.reportdefinitions.FilterDefinitions getFilterDefinitions() 271 { 272 return this._filterDefinitions; 273 } 275 280 public java.lang.String getId() 281 { 282 return this._id; 283 } 285 290 public java.lang.String getInfoPage() 291 { 292 return this._infoPage; 293 } 295 301 public boolean getIsTransient() 302 { 303 return this._isTransient; 304 } 306 312 public java.lang.String getLayoutDesign() 313 { 314 return this._layoutDesign; 315 } 317 323 public com.calipso.reportgenerator.reportdefinitions.Localizations getLocalizations() 324 { 325 return this._localizations; 326 } 328 334 public int getMaxRowCount() 335 { 336 return this._maxRowCount; 337 } 339 345 public java.lang.String getMaxRowsDimensionReference() 346 { 347 return this._maxRowsDimensionReference; 348 } 350 356 public com.calipso.reportgenerator.reportdefinitions.MetricDefinitions getMetricDefinitions() 357 { 358 return this._metricDefinitions; 359 } 361 367 public boolean getMultilanguage() 368 { 369 return this._multilanguage; 370 } 372 377 public java.lang.String getPageFooter() 378 { 379 return this._pageFooter; 380 } 382 387 public java.lang.String getPageHeding() 388 { 389 return this._pageHeding; 390 } 392 398 public com.calipso.reportgenerator.reportdefinitions.ParameterValues getParameterValues() 399 { 400 return this._parameterValues; 401 } 403 409 public java.lang.String getReportSource() 410 { 411 return this._reportSource; 412 } 414 419 public com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType getReportType() 420 { 421 return this._reportType; 422 } 424 429 public com.calipso.reportgenerator.reportdefinitions.Roles getRoles() 430 { 431 return this._roles; 432 } 434 439 public java.lang.String getTitle() 440 { 441 return this._title; 442 } 444 450 public boolean getVisibleTotals() 451 { 452 return this._visibleTotals; 453 } 455 458 public boolean hasIsTransient() 459 { 460 return this._has_isTransient; 461 } 463 466 public boolean hasMaxRowCount() 467 { 468 return this._has_maxRowCount; 469 } 471 474 public boolean hasMultilanguage() 475 { 476 return this._has_multilanguage; 477 } 479 482 public boolean hasVisibleTotals() 483 { 484 return this._has_visibleTotals; 485 } 487 490 public boolean isValid() 491 { 492 try { 493 validate(); 494 } 495 catch (org.exolab.castor.xml.ValidationException vex) { 496 return false; 497 } 498 return true; 499 } 501 506 public void marshal(java.io.Writer out) 507 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 508 { 509 510 Marshaller.marshal(this, out); 511 } 513 518 public void marshal(org.xml.sax.ContentHandler handler) 519 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 520 { 521 522 Marshaller.marshal(this, handler); 523 } 525 532 public void setActionDefinitions(com.calipso.reportgenerator.reportdefinitions.ActionDefinitions actionDefinitions) 533 { 534 this._actionDefinitions = actionDefinitions; 535 } 537 542 public void setDescription(java.lang.String description) 543 { 544 this._description = description; 545 } 547 554 public void setDimensionDefinitions(com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions dimensionDefinitions) 555 { 556 this._dimensionDefinitions = dimensionDefinitions; 557 } 559 566 public void setDrillDownDefinitions(com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions drillDownDefinitions) 567 { 568 this._drillDownDefinitions = drillDownDefinitions; 569 } 571 576 public void setEntity(java.lang.String entity) 577 { 578 this._entity = entity; 579 } 581 588 public void setFilterDefinitions(com.calipso.reportgenerator.reportdefinitions.FilterDefinitions filterDefinitions) 589 { 590 this._filterDefinitions = filterDefinitions; 591 } 593 598 public void setId(java.lang.String id) 599 { 600 this._id = id; 601 } 603 608 public void setInfoPage(java.lang.String infoPage) 609 { 610 this._infoPage = infoPage; 611 } 613 618 public void setIsTransient(boolean isTransient) 619 { 620 this._isTransient = isTransient; 621 this._has_isTransient = true; 622 } 624 630 public void setLayoutDesign(java.lang.String layoutDesign) 631 { 632 this._layoutDesign = layoutDesign; 633 } 635 641 public void setLocalizations(com.calipso.reportgenerator.reportdefinitions.Localizations localizations) 642 { 643 this._localizations = localizations; 644 } 646 651 public void setMaxRowCount(int maxRowCount) 652 { 653 this._maxRowCount = maxRowCount; 654 this._has_maxRowCount = true; 655 } 657 664 public void setMaxRowsDimensionReference(java.lang.String maxRowsDimensionReference) 665 { 666 this._maxRowsDimensionReference = maxRowsDimensionReference; 667 } 669 676 public void setMetricDefinitions(com.calipso.reportgenerator.reportdefinitions.MetricDefinitions metricDefinitions) 677 { 678 this._metricDefinitions = metricDefinitions; 679 } 681 687 public void setMultilanguage(boolean multilanguage) 688 { 689 this._multilanguage = multilanguage; 690 this._has_multilanguage = true; 691 } 693 698 public void setPageFooter(java.lang.String pageFooter) 699 { 700 this._pageFooter = pageFooter; 701 } 703 708 public void setPageHeding(java.lang.String pageHeding) 709 { 710 this._pageHeding = pageHeding; 711 } 713 719 public void setParameterValues(com.calipso.reportgenerator.reportdefinitions.ParameterValues parameterValues) 720 { 721 this._parameterValues = parameterValues; 722 } 724 730 public void setReportSource(java.lang.String reportSource) 731 { 732 this._reportSource = reportSource; 733 } 735 740 public void setReportType(com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType reportType) 741 { 742 this._reportType = reportType; 743 } 745 750 public void setRoles(com.calipso.reportgenerator.reportdefinitions.Roles roles) 751 { 752 this._roles = roles; 753 } 755 760 public void setTitle(java.lang.String title) 761 { 762 this._title = title; 763 } 765 771 public void setVisibleTotals(boolean visibleTotals) 772 { 773 this._visibleTotals = visibleTotals; 774 this._has_visibleTotals = true; 775 } 777 782 public static com.calipso.reportgenerator.reportdefinitions.ReportDefinition unmarshal(java.io.Reader reader) 783 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 784 { 785 return (com.calipso.reportgenerator.reportdefinitions.ReportDefinition) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.ReportDefinition.class, reader); 786 } 788 791 public void validate() 792 throws org.exolab.castor.xml.ValidationException 793 { 794 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 795 validator.validate(this); 796 } 798 } 799 | Popular Tags |