1 7 8 package com.calipso.reportgenerator.reportdefinitions; 9 10 14 import org.exolab.castor.mapping.AccessMode; 15 import org.exolab.castor.xml.TypeValidator; 16 import org.exolab.castor.xml.XMLFieldDescriptor; 17 import org.exolab.castor.xml.validators.*; 18 19 24 public class ReportDefinitionDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { 25 26 27 31 34 private java.lang.String nsPrefix; 35 36 39 private java.lang.String nsURI; 40 41 44 private java.lang.String xmlName; 45 46 49 private org.exolab.castor.xml.XMLFieldDescriptor identity; 50 51 52 56 public ReportDefinitionDescriptor() { 57 super(); 58 xmlName = "ReportDefinition"; 59 60 setCompositorAsSequence(); 62 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; 63 org.exolab.castor.xml.XMLFieldHandler handler = null; 64 org.exolab.castor.xml.FieldValidator fieldValidator = null; 65 67 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_id", "Id", org.exolab.castor.xml.NodeType.Attribute); 69 desc.setImmutable(true); 70 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 71 public java.lang.Object getValue( java.lang.Object object ) 72 throws IllegalStateException 73 { 74 ReportDefinition target = (ReportDefinition) object; 75 return target.getId(); 76 } 77 public void setValue( java.lang.Object object, java.lang.Object value) 78 throws IllegalStateException , IllegalArgumentException 79 { 80 try { 81 ReportDefinition target = (ReportDefinition) object; 82 target.setId( (java.lang.String ) value); 83 } 84 catch (java.lang.Exception ex) { 85 throw new IllegalStateException (ex.toString()); 86 } 87 } 88 public java.lang.Object newInstance( java.lang.Object parent ) { 89 return null; 90 } 91 } ); 92 desc.setHandler(handler); 93 desc.setRequired(true); 94 addFieldDescriptor(desc); 95 96 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 98 fieldValidator.setMinOccurs(1); 99 { StringValidator typeValidator = new StringValidator(); 101 typeValidator.setWhiteSpace("preserve"); 102 fieldValidator.setValidator(typeValidator); 103 } 104 desc.setValidator(fieldValidator); 105 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_description", "Description", org.exolab.castor.xml.NodeType.Attribute); 107 desc.setImmutable(true); 108 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 109 public java.lang.Object getValue( java.lang.Object object ) 110 throws IllegalStateException 111 { 112 ReportDefinition target = (ReportDefinition) object; 113 return target.getDescription(); 114 } 115 public void setValue( java.lang.Object object, java.lang.Object value) 116 throws IllegalStateException , IllegalArgumentException 117 { 118 try { 119 ReportDefinition target = (ReportDefinition) object; 120 target.setDescription( (java.lang.String ) value); 121 } 122 catch (java.lang.Exception ex) { 123 throw new IllegalStateException (ex.toString()); 124 } 125 } 126 public java.lang.Object newInstance( java.lang.Object parent ) { 127 return null; 128 } 129 } ); 130 desc.setHandler(handler); 131 desc.setRequired(true); 132 addFieldDescriptor(desc); 133 134 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 136 fieldValidator.setMinOccurs(1); 137 { StringValidator typeValidator = new StringValidator(); 139 typeValidator.setWhiteSpace("preserve"); 140 fieldValidator.setValidator(typeValidator); 141 } 142 desc.setValidator(fieldValidator); 143 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_reportSource", "ReportSource", org.exolab.castor.xml.NodeType.Attribute); 145 desc.setImmutable(true); 146 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 147 public java.lang.Object getValue( java.lang.Object object ) 148 throws IllegalStateException 149 { 150 ReportDefinition target = (ReportDefinition) object; 151 return target.getReportSource(); 152 } 153 public void setValue( java.lang.Object object, java.lang.Object value) 154 throws IllegalStateException , IllegalArgumentException 155 { 156 try { 157 ReportDefinition target = (ReportDefinition) object; 158 target.setReportSource( (java.lang.String ) value); 159 } 160 catch (java.lang.Exception ex) { 161 throw new IllegalStateException (ex.toString()); 162 } 163 } 164 public java.lang.Object newInstance( java.lang.Object parent ) { 165 return null; 166 } 167 } ); 168 desc.setHandler(handler); 169 desc.setRequired(true); 170 addFieldDescriptor(desc); 171 172 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 174 fieldValidator.setMinOccurs(1); 175 { StringValidator typeValidator = new StringValidator(); 177 typeValidator.setWhiteSpace("preserve"); 178 fieldValidator.setValidator(typeValidator); 179 } 180 desc.setValidator(fieldValidator); 181 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_entity", "Entity", org.exolab.castor.xml.NodeType.Attribute); 183 desc.setImmutable(true); 184 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 185 public java.lang.Object getValue( java.lang.Object object ) 186 throws IllegalStateException 187 { 188 ReportDefinition target = (ReportDefinition) object; 189 return target.getEntity(); 190 } 191 public void setValue( java.lang.Object object, java.lang.Object value) 192 throws IllegalStateException , IllegalArgumentException 193 { 194 try { 195 ReportDefinition target = (ReportDefinition) object; 196 target.setEntity( (java.lang.String ) value); 197 } 198 catch (java.lang.Exception ex) { 199 throw new IllegalStateException (ex.toString()); 200 } 201 } 202 public java.lang.Object newInstance( java.lang.Object parent ) { 203 return null; 204 } 205 } ); 206 desc.setHandler(handler); 207 desc.setRequired(true); 208 addFieldDescriptor(desc); 209 210 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 212 fieldValidator.setMinOccurs(1); 213 { StringValidator typeValidator = new StringValidator(); 215 typeValidator.setWhiteSpace("preserve"); 216 fieldValidator.setValidator(typeValidator); 217 } 218 desc.setValidator(fieldValidator); 219 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_isTransient", "IsTransient", org.exolab.castor.xml.NodeType.Attribute); 221 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 222 public java.lang.Object getValue( java.lang.Object object ) 223 throws IllegalStateException 224 { 225 ReportDefinition target = (ReportDefinition) object; 226 if(!target.hasIsTransient()) 227 return null; 228 return new Boolean (target.getIsTransient()); 229 } 230 public void setValue( java.lang.Object object, java.lang.Object value) 231 throws IllegalStateException , IllegalArgumentException 232 { 233 try { 234 ReportDefinition target = (ReportDefinition) object; 235 if (value == null) return; 237 238 target.setIsTransient( ((Boolean )value).booleanValue()); 239 } 240 catch (java.lang.Exception ex) { 241 throw new IllegalStateException (ex.toString()); 242 } 243 } 244 public java.lang.Object newInstance( java.lang.Object parent ) { 245 return null; 246 } 247 } ); 248 desc.setHandler(handler); 249 desc.setRequired(true); 250 addFieldDescriptor(desc); 251 252 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 254 fieldValidator.setMinOccurs(1); 255 { BooleanValidator typeValidator = new BooleanValidator(); 257 fieldValidator.setValidator(typeValidator); 258 } 259 desc.setValidator(fieldValidator); 260 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_infoPage", "InfoPage", org.exolab.castor.xml.NodeType.Attribute); 262 desc.setImmutable(true); 263 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 264 public java.lang.Object getValue( java.lang.Object object ) 265 throws IllegalStateException 266 { 267 ReportDefinition target = (ReportDefinition) object; 268 return target.getInfoPage(); 269 } 270 public void setValue( java.lang.Object object, java.lang.Object value) 271 throws IllegalStateException , IllegalArgumentException 272 { 273 try { 274 ReportDefinition target = (ReportDefinition) object; 275 target.setInfoPage( (java.lang.String ) value); 276 } 277 catch (java.lang.Exception ex) { 278 throw new IllegalStateException (ex.toString()); 279 } 280 } 281 public java.lang.Object newInstance( java.lang.Object parent ) { 282 return null; 283 } 284 } ); 285 desc.setHandler(handler); 286 addFieldDescriptor(desc); 287 288 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 290 { StringValidator typeValidator = new StringValidator(); 292 typeValidator.setWhiteSpace("preserve"); 293 fieldValidator.setValidator(typeValidator); 294 } 295 desc.setValidator(fieldValidator); 296 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType.class, "_reportType", "ReportType", org.exolab.castor.xml.NodeType.Attribute); 298 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 299 public java.lang.Object getValue( java.lang.Object object ) 300 throws IllegalStateException 301 { 302 ReportDefinition target = (ReportDefinition) object; 303 return target.getReportType(); 304 } 305 public void setValue( java.lang.Object object, java.lang.Object value) 306 throws IllegalStateException , IllegalArgumentException 307 { 308 try { 309 ReportDefinition target = (ReportDefinition) object; 310 target.setReportType( (com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType) value); 311 } 312 catch (java.lang.Exception ex) { 313 throw new IllegalStateException (ex.toString()); 314 } 315 } 316 public java.lang.Object newInstance( java.lang.Object parent ) { 317 return null; 318 } 319 } ); 320 desc.setHandler( new org.exolab.castor.xml.handlers.EnumFieldHandler(com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType.class, handler)); 321 desc.setImmutable(true); 322 desc.setRequired(true); 323 addFieldDescriptor(desc); 324 325 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 327 fieldValidator.setMinOccurs(1); 328 { } 330 desc.setValidator(fieldValidator); 331 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_title", "Title", org.exolab.castor.xml.NodeType.Attribute); 333 desc.setImmutable(true); 334 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 335 public java.lang.Object getValue( java.lang.Object object ) 336 throws IllegalStateException 337 { 338 ReportDefinition target = (ReportDefinition) object; 339 return target.getTitle(); 340 } 341 public void setValue( java.lang.Object object, java.lang.Object value) 342 throws IllegalStateException , IllegalArgumentException 343 { 344 try { 345 ReportDefinition target = (ReportDefinition) object; 346 target.setTitle( (java.lang.String ) value); 347 } 348 catch (java.lang.Exception ex) { 349 throw new IllegalStateException (ex.toString()); 350 } 351 } 352 public java.lang.Object newInstance( java.lang.Object parent ) { 353 return null; 354 } 355 } ); 356 desc.setHandler(handler); 357 desc.setRequired(true); 358 addFieldDescriptor(desc); 359 360 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 362 fieldValidator.setMinOccurs(1); 363 { StringValidator typeValidator = new StringValidator(); 365 typeValidator.setWhiteSpace("preserve"); 366 fieldValidator.setValidator(typeValidator); 367 } 368 desc.setValidator(fieldValidator); 369 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_pageHeding", "PageHeding", org.exolab.castor.xml.NodeType.Attribute); 371 desc.setImmutable(true); 372 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 373 public java.lang.Object getValue( java.lang.Object object ) 374 throws IllegalStateException 375 { 376 ReportDefinition target = (ReportDefinition) object; 377 return target.getPageHeding(); 378 } 379 public void setValue( java.lang.Object object, java.lang.Object value) 380 throws IllegalStateException , IllegalArgumentException 381 { 382 try { 383 ReportDefinition target = (ReportDefinition) object; 384 target.setPageHeding( (java.lang.String ) value); 385 } 386 catch (java.lang.Exception ex) { 387 throw new IllegalStateException (ex.toString()); 388 } 389 } 390 public java.lang.Object newInstance( java.lang.Object parent ) { 391 return null; 392 } 393 } ); 394 desc.setHandler(handler); 395 addFieldDescriptor(desc); 396 397 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 399 { StringValidator typeValidator = new StringValidator(); 401 typeValidator.setWhiteSpace("preserve"); 402 fieldValidator.setValidator(typeValidator); 403 } 404 desc.setValidator(fieldValidator); 405 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_pageFooter", "PageFooter", org.exolab.castor.xml.NodeType.Attribute); 407 desc.setImmutable(true); 408 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 409 public java.lang.Object getValue( java.lang.Object object ) 410 throws IllegalStateException 411 { 412 ReportDefinition target = (ReportDefinition) object; 413 return target.getPageFooter(); 414 } 415 public void setValue( java.lang.Object object, java.lang.Object value) 416 throws IllegalStateException , IllegalArgumentException 417 { 418 try { 419 ReportDefinition target = (ReportDefinition) object; 420 target.setPageFooter( (java.lang.String ) value); 421 } 422 catch (java.lang.Exception ex) { 423 throw new IllegalStateException (ex.toString()); 424 } 425 } 426 public java.lang.Object newInstance( java.lang.Object parent ) { 427 return null; 428 } 429 } ); 430 desc.setHandler(handler); 431 addFieldDescriptor(desc); 432 433 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 435 { StringValidator typeValidator = new StringValidator(); 437 typeValidator.setWhiteSpace("preserve"); 438 fieldValidator.setValidator(typeValidator); 439 } 440 desc.setValidator(fieldValidator); 441 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_multilanguage", "Multilanguage", org.exolab.castor.xml.NodeType.Attribute); 443 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 444 public java.lang.Object getValue( java.lang.Object object ) 445 throws IllegalStateException 446 { 447 ReportDefinition target = (ReportDefinition) object; 448 if(!target.hasMultilanguage()) 449 return null; 450 return new Boolean (target.getMultilanguage()); 451 } 452 public void setValue( java.lang.Object object, java.lang.Object value) 453 throws IllegalStateException , IllegalArgumentException 454 { 455 try { 456 ReportDefinition target = (ReportDefinition) object; 457 if (value == null) { 459 target.deleteMultilanguage(); 460 return; 461 } 462 target.setMultilanguage( ((Boolean )value).booleanValue()); 463 } 464 catch (java.lang.Exception ex) { 465 throw new IllegalStateException (ex.toString()); 466 } 467 } 468 public java.lang.Object newInstance( java.lang.Object parent ) { 469 return null; 470 } 471 } ); 472 desc.setHandler(handler); 473 addFieldDescriptor(desc); 474 475 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 477 { BooleanValidator typeValidator = new BooleanValidator(); 479 fieldValidator.setValidator(typeValidator); 480 } 481 desc.setValidator(fieldValidator); 482 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_maxRowsDimensionReference", "MaxRowsDimensionReference", org.exolab.castor.xml.NodeType.Attribute); 484 desc.setImmutable(true); 485 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 486 public java.lang.Object getValue( java.lang.Object object ) 487 throws IllegalStateException 488 { 489 ReportDefinition target = (ReportDefinition) object; 490 return target.getMaxRowsDimensionReference(); 491 } 492 public void setValue( java.lang.Object object, java.lang.Object value) 493 throws IllegalStateException , IllegalArgumentException 494 { 495 try { 496 ReportDefinition target = (ReportDefinition) object; 497 target.setMaxRowsDimensionReference( (java.lang.String ) value); 498 } 499 catch (java.lang.Exception ex) { 500 throw new IllegalStateException (ex.toString()); 501 } 502 } 503 public java.lang.Object newInstance( java.lang.Object parent ) { 504 return null; 505 } 506 } ); 507 desc.setHandler(handler); 508 addFieldDescriptor(desc); 509 510 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 512 { StringValidator typeValidator = new StringValidator(); 514 typeValidator.setWhiteSpace("preserve"); 515 fieldValidator.setValidator(typeValidator); 516 } 517 desc.setValidator(fieldValidator); 518 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_maxRowCount", "MaxRowCount", org.exolab.castor.xml.NodeType.Attribute); 520 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 521 public java.lang.Object getValue( java.lang.Object object ) 522 throws IllegalStateException 523 { 524 ReportDefinition target = (ReportDefinition) object; 525 if(!target.hasMaxRowCount()) 526 return null; 527 return new Integer (target.getMaxRowCount()); 528 } 529 public void setValue( java.lang.Object object, java.lang.Object value) 530 throws IllegalStateException , IllegalArgumentException 531 { 532 try { 533 ReportDefinition target = (ReportDefinition) object; 534 if (value == null) { 536 target.deleteMaxRowCount(); 537 return; 538 } 539 target.setMaxRowCount( ((Integer )value).intValue()); 540 } 541 catch (java.lang.Exception ex) { 542 throw new IllegalStateException (ex.toString()); 543 } 544 } 545 public java.lang.Object newInstance( java.lang.Object parent ) { 546 return null; 547 } 548 } ); 549 desc.setHandler(handler); 550 addFieldDescriptor(desc); 551 552 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 554 { IntegerValidator typeValidator = new IntegerValidator(); 556 fieldValidator.setValidator(typeValidator); 557 } 558 desc.setValidator(fieldValidator); 559 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_visibleTotals", "VisibleTotals", org.exolab.castor.xml.NodeType.Attribute); 561 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 562 public java.lang.Object getValue( java.lang.Object object ) 563 throws IllegalStateException 564 { 565 ReportDefinition target = (ReportDefinition) object; 566 if(!target.hasVisibleTotals()) 567 return null; 568 return new Boolean (target.getVisibleTotals()); 569 } 570 public void setValue( java.lang.Object object, java.lang.Object value) 571 throws IllegalStateException , IllegalArgumentException 572 { 573 try { 574 ReportDefinition target = (ReportDefinition) object; 575 if (value == null) { 577 target.deleteVisibleTotals(); 578 return; 579 } 580 target.setVisibleTotals( ((Boolean )value).booleanValue()); 581 } 582 catch (java.lang.Exception ex) { 583 throw new IllegalStateException (ex.toString()); 584 } 585 } 586 public java.lang.Object newInstance( java.lang.Object parent ) { 587 return null; 588 } 589 } ); 590 desc.setHandler(handler); 591 addFieldDescriptor(desc); 592 593 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 595 { BooleanValidator typeValidator = new BooleanValidator(); 597 fieldValidator.setValidator(typeValidator); 598 } 599 desc.setValidator(fieldValidator); 600 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_layoutDesign", "LayoutDesign", org.exolab.castor.xml.NodeType.Attribute); 602 desc.setImmutable(true); 603 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 604 public java.lang.Object getValue( java.lang.Object object ) 605 throws IllegalStateException 606 { 607 ReportDefinition target = (ReportDefinition) object; 608 return target.getLayoutDesign(); 609 } 610 public void setValue( java.lang.Object object, java.lang.Object value) 611 throws IllegalStateException , IllegalArgumentException 612 { 613 try { 614 ReportDefinition target = (ReportDefinition) object; 615 target.setLayoutDesign( (java.lang.String ) value); 616 } 617 catch (java.lang.Exception ex) { 618 throw new IllegalStateException (ex.toString()); 619 } 620 } 621 public java.lang.Object newInstance( java.lang.Object parent ) { 622 return null; 623 } 624 } ); 625 desc.setHandler(handler); 626 addFieldDescriptor(desc); 627 628 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 630 { StringValidator typeValidator = new StringValidator(); 632 typeValidator.setWhiteSpace("preserve"); 633 fieldValidator.setValidator(typeValidator); 634 } 635 desc.setValidator(fieldValidator); 636 638 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.Roles.class, "_roles", "Roles", org.exolab.castor.xml.NodeType.Element); 640 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 641 public java.lang.Object getValue( java.lang.Object object ) 642 throws IllegalStateException 643 { 644 ReportDefinition target = (ReportDefinition) object; 645 return target.getRoles(); 646 } 647 public void setValue( java.lang.Object object, java.lang.Object value) 648 throws IllegalStateException , IllegalArgumentException 649 { 650 try { 651 ReportDefinition target = (ReportDefinition) object; 652 target.setRoles( (com.calipso.reportgenerator.reportdefinitions.Roles) value); 653 } 654 catch (java.lang.Exception ex) { 655 throw new IllegalStateException (ex.toString()); 656 } 657 } 658 public java.lang.Object newInstance( java.lang.Object parent ) { 659 return new com.calipso.reportgenerator.reportdefinitions.Roles(); 660 } 661 } ); 662 desc.setHandler(handler); 663 desc.setRequired(true); 664 desc.setMultivalued(false); 665 addFieldDescriptor(desc); 666 667 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 669 fieldValidator.setMinOccurs(1); 670 { } 672 desc.setValidator(fieldValidator); 673 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions.class, "_dimensionDefinitions", "DimensionDefinitions", org.exolab.castor.xml.NodeType.Element); 675 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 676 public java.lang.Object getValue( java.lang.Object object ) 677 throws IllegalStateException 678 { 679 ReportDefinition target = (ReportDefinition) object; 680 return target.getDimensionDefinitions(); 681 } 682 public void setValue( java.lang.Object object, java.lang.Object value) 683 throws IllegalStateException , IllegalArgumentException 684 { 685 try { 686 ReportDefinition target = (ReportDefinition) object; 687 target.setDimensionDefinitions( (com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions) value); 688 } 689 catch (java.lang.Exception ex) { 690 throw new IllegalStateException (ex.toString()); 691 } 692 } 693 public java.lang.Object newInstance( java.lang.Object parent ) { 694 return new com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions(); 695 } 696 } ); 697 desc.setHandler(handler); 698 desc.setRequired(true); 699 desc.setMultivalued(false); 700 addFieldDescriptor(desc); 701 702 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 704 fieldValidator.setMinOccurs(1); 705 { } 707 desc.setValidator(fieldValidator); 708 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.MetricDefinitions.class, "_metricDefinitions", "MetricDefinitions", org.exolab.castor.xml.NodeType.Element); 710 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 711 public java.lang.Object getValue( java.lang.Object object ) 712 throws IllegalStateException 713 { 714 ReportDefinition target = (ReportDefinition) object; 715 return target.getMetricDefinitions(); 716 } 717 public void setValue( java.lang.Object object, java.lang.Object value) 718 throws IllegalStateException , IllegalArgumentException 719 { 720 try { 721 ReportDefinition target = (ReportDefinition) object; 722 target.setMetricDefinitions( (com.calipso.reportgenerator.reportdefinitions.MetricDefinitions) value); 723 } 724 catch (java.lang.Exception ex) { 725 throw new IllegalStateException (ex.toString()); 726 } 727 } 728 public java.lang.Object newInstance( java.lang.Object parent ) { 729 return new com.calipso.reportgenerator.reportdefinitions.MetricDefinitions(); 730 } 731 } ); 732 desc.setHandler(handler); 733 desc.setRequired(true); 734 desc.setMultivalued(false); 735 addFieldDescriptor(desc); 736 737 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 739 fieldValidator.setMinOccurs(1); 740 { } 742 desc.setValidator(fieldValidator); 743 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.ActionDefinitions.class, "_actionDefinitions", "ActionDefinitions", org.exolab.castor.xml.NodeType.Element); 745 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 746 public java.lang.Object getValue( java.lang.Object object ) 747 throws IllegalStateException 748 { 749 ReportDefinition target = (ReportDefinition) object; 750 return target.getActionDefinitions(); 751 } 752 public void setValue( java.lang.Object object, java.lang.Object value) 753 throws IllegalStateException , IllegalArgumentException 754 { 755 try { 756 ReportDefinition target = (ReportDefinition) object; 757 target.setActionDefinitions( (com.calipso.reportgenerator.reportdefinitions.ActionDefinitions) value); 758 } 759 catch (java.lang.Exception ex) { 760 throw new IllegalStateException (ex.toString()); 761 } 762 } 763 public java.lang.Object newInstance( java.lang.Object parent ) { 764 return new com.calipso.reportgenerator.reportdefinitions.ActionDefinitions(); 765 } 766 } ); 767 desc.setHandler(handler); 768 desc.setMultivalued(false); 769 addFieldDescriptor(desc); 770 771 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 773 { } 775 desc.setValidator(fieldValidator); 776 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.FilterDefinitions.class, "_filterDefinitions", "FilterDefinitions", org.exolab.castor.xml.NodeType.Element); 778 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 779 public java.lang.Object getValue( java.lang.Object object ) 780 throws IllegalStateException 781 { 782 ReportDefinition target = (ReportDefinition) object; 783 return target.getFilterDefinitions(); 784 } 785 public void setValue( java.lang.Object object, java.lang.Object value) 786 throws IllegalStateException , IllegalArgumentException 787 { 788 try { 789 ReportDefinition target = (ReportDefinition) object; 790 target.setFilterDefinitions( (com.calipso.reportgenerator.reportdefinitions.FilterDefinitions) value); 791 } 792 catch (java.lang.Exception ex) { 793 throw new IllegalStateException (ex.toString()); 794 } 795 } 796 public java.lang.Object newInstance( java.lang.Object parent ) { 797 return new com.calipso.reportgenerator.reportdefinitions.FilterDefinitions(); 798 } 799 } ); 800 desc.setHandler(handler); 801 desc.setMultivalued(false); 802 addFieldDescriptor(desc); 803 804 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 806 { } 808 desc.setValidator(fieldValidator); 809 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.ParameterValues.class, "_parameterValues", "ParameterValues", org.exolab.castor.xml.NodeType.Element); 811 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 812 public java.lang.Object getValue( java.lang.Object object ) 813 throws IllegalStateException 814 { 815 ReportDefinition target = (ReportDefinition) object; 816 return target.getParameterValues(); 817 } 818 public void setValue( java.lang.Object object, java.lang.Object value) 819 throws IllegalStateException , IllegalArgumentException 820 { 821 try { 822 ReportDefinition target = (ReportDefinition) object; 823 target.setParameterValues( (com.calipso.reportgenerator.reportdefinitions.ParameterValues) value); 824 } 825 catch (java.lang.Exception ex) { 826 throw new IllegalStateException (ex.toString()); 827 } 828 } 829 public java.lang.Object newInstance( java.lang.Object parent ) { 830 return new com.calipso.reportgenerator.reportdefinitions.ParameterValues(); 831 } 832 } ); 833 desc.setHandler(handler); 834 desc.setMultivalued(false); 835 addFieldDescriptor(desc); 836 837 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 839 { } 841 desc.setValidator(fieldValidator); 842 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.Localizations.class, "_localizations", "Localizations", org.exolab.castor.xml.NodeType.Element); 844 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 845 public java.lang.Object getValue( java.lang.Object object ) 846 throws IllegalStateException 847 { 848 ReportDefinition target = (ReportDefinition) object; 849 return target.getLocalizations(); 850 } 851 public void setValue( java.lang.Object object, java.lang.Object value) 852 throws IllegalStateException , IllegalArgumentException 853 { 854 try { 855 ReportDefinition target = (ReportDefinition) object; 856 target.setLocalizations( (com.calipso.reportgenerator.reportdefinitions.Localizations) value); 857 } 858 catch (java.lang.Exception ex) { 859 throw new IllegalStateException (ex.toString()); 860 } 861 } 862 public java.lang.Object newInstance( java.lang.Object parent ) { 863 return new com.calipso.reportgenerator.reportdefinitions.Localizations(); 864 } 865 } ); 866 desc.setHandler(handler); 867 desc.setMultivalued(false); 868 addFieldDescriptor(desc); 869 870 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 872 { } 874 desc.setValidator(fieldValidator); 875 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions.class, "_drillDownDefinitions", "DrillDownDefinitions", org.exolab.castor.xml.NodeType.Element); 877 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 878 public java.lang.Object getValue( java.lang.Object object ) 879 throws IllegalStateException 880 { 881 ReportDefinition target = (ReportDefinition) object; 882 return target.getDrillDownDefinitions(); 883 } 884 public void setValue( java.lang.Object object, java.lang.Object value) 885 throws IllegalStateException , IllegalArgumentException 886 { 887 try { 888 ReportDefinition target = (ReportDefinition) object; 889 target.setDrillDownDefinitions( (com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions) value); 890 } 891 catch (java.lang.Exception ex) { 892 throw new IllegalStateException (ex.toString()); 893 } 894 } 895 public java.lang.Object newInstance( java.lang.Object parent ) { 896 return new com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions(); 897 } 898 } ); 899 desc.setHandler(handler); 900 desc.setMultivalued(false); 901 addFieldDescriptor(desc); 902 903 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 905 { } 907 desc.setValidator(fieldValidator); 908 } 910 911 915 918 public org.exolab.castor.mapping.AccessMode getAccessMode() 919 { 920 return null; 921 } 923 926 public org.exolab.castor.mapping.ClassDescriptor getExtends() 927 { 928 return null; 929 } 931 934 public org.exolab.castor.mapping.FieldDescriptor getIdentity() 935 { 936 return identity; 937 } 939 942 public java.lang.Class getJavaClass() 943 { 944 return com.calipso.reportgenerator.reportdefinitions.ReportDefinition.class; 945 } 947 950 public java.lang.String getNameSpacePrefix() 951 { 952 return nsPrefix; 953 } 955 958 public java.lang.String getNameSpaceURI() 959 { 960 return nsURI; 961 } 963 966 public org.exolab.castor.xml.TypeValidator getValidator() 967 { 968 return this; 969 } 971 974 public java.lang.String getXMLName() 975 { 976 return xmlName; 977 } 979 } 980 | Popular Tags |