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 DataSourceDefinitionDescriptor 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 DataSourceDefinitionDescriptor() { 57 super(); 58 xmlName = "DataSourceDefinition"; 59 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; 60 org.exolab.castor.xml.XMLFieldHandler handler = null; 61 org.exolab.castor.xml.FieldValidator fieldValidator = null; 62 64 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_name", "Name", org.exolab.castor.xml.NodeType.Attribute); 66 desc.setImmutable(true); 67 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 68 public java.lang.Object getValue( java.lang.Object object ) 69 throws IllegalStateException 70 { 71 DataSourceDefinition target = (DataSourceDefinition) object; 72 return target.getName(); 73 } 74 public void setValue( java.lang.Object object, java.lang.Object value) 75 throws IllegalStateException , IllegalArgumentException 76 { 77 try { 78 DataSourceDefinition target = (DataSourceDefinition) object; 79 target.setName( (java.lang.String ) value); 80 } 81 catch (java.lang.Exception ex) { 82 throw new IllegalStateException (ex.toString()); 83 } 84 } 85 public java.lang.Object newInstance( java.lang.Object parent ) { 86 return null; 87 } 88 } ); 89 desc.setHandler(handler); 90 desc.setRequired(true); 91 addFieldDescriptor(desc); 92 93 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 95 fieldValidator.setMinOccurs(1); 96 { StringValidator typeValidator = new StringValidator(); 98 typeValidator.setWhiteSpace("preserve"); 99 fieldValidator.setValidator(typeValidator); 100 } 101 desc.setValidator(fieldValidator); 102 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType.class, "_sourceType", "SourceType", org.exolab.castor.xml.NodeType.Attribute); 104 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 105 public java.lang.Object getValue( java.lang.Object object ) 106 throws IllegalStateException 107 { 108 DataSourceDefinition target = (DataSourceDefinition) object; 109 return target.getSourceType(); 110 } 111 public void setValue( java.lang.Object object, java.lang.Object value) 112 throws IllegalStateException , IllegalArgumentException 113 { 114 try { 115 DataSourceDefinition target = (DataSourceDefinition) object; 116 target.setSourceType( (com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType) value); 117 } 118 catch (java.lang.Exception ex) { 119 throw new IllegalStateException (ex.toString()); 120 } 121 } 122 public java.lang.Object newInstance( java.lang.Object parent ) { 123 return null; 124 } 125 } ); 126 desc.setHandler( new org.exolab.castor.xml.handlers.EnumFieldHandler(com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType.class, handler)); 127 desc.setImmutable(true); 128 desc.setRequired(true); 129 addFieldDescriptor(desc); 130 131 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 133 fieldValidator.setMinOccurs(1); 134 { } 136 desc.setValidator(fieldValidator); 137 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_expression", "Expression", org.exolab.castor.xml.NodeType.Attribute); 139 desc.setImmutable(true); 140 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 141 public java.lang.Object getValue( java.lang.Object object ) 142 throws IllegalStateException 143 { 144 DataSourceDefinition target = (DataSourceDefinition) object; 145 return target.getExpression(); 146 } 147 public void setValue( java.lang.Object object, java.lang.Object value) 148 throws IllegalStateException , IllegalArgumentException 149 { 150 try { 151 DataSourceDefinition target = (DataSourceDefinition) object; 152 target.setExpression( (java.lang.String ) value); 153 } 154 catch (java.lang.Exception ex) { 155 throw new IllegalStateException (ex.toString()); 156 } 157 } 158 public java.lang.Object newInstance( java.lang.Object parent ) { 159 return null; 160 } 161 } ); 162 desc.setHandler(handler); 163 addFieldDescriptor(desc); 164 165 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 167 { StringValidator typeValidator = new StringValidator(); 169 typeValidator.setWhiteSpace("preserve"); 170 fieldValidator.setValidator(typeValidator); 171 } 172 desc.setValidator(fieldValidator); 173 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_externalClassName", "ExternalClassName", org.exolab.castor.xml.NodeType.Attribute); 175 desc.setImmutable(true); 176 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 177 public java.lang.Object getValue( java.lang.Object object ) 178 throws IllegalStateException 179 { 180 DataSourceDefinition target = (DataSourceDefinition) object; 181 return target.getExternalClassName(); 182 } 183 public void setValue( java.lang.Object object, java.lang.Object value) 184 throws IllegalStateException , IllegalArgumentException 185 { 186 try { 187 DataSourceDefinition target = (DataSourceDefinition) object; 188 target.setExternalClassName( (java.lang.String ) value); 189 } 190 catch (java.lang.Exception ex) { 191 throw new IllegalStateException (ex.toString()); 192 } 193 } 194 public java.lang.Object newInstance( java.lang.Object parent ) { 195 return null; 196 } 197 } ); 198 desc.setHandler(handler); 199 addFieldDescriptor(desc); 200 201 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 203 { StringValidator typeValidator = new StringValidator(); 205 typeValidator.setWhiteSpace("preserve"); 206 fieldValidator.setValidator(typeValidator); 207 } 208 desc.setValidator(fieldValidator); 209 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_externalSourceData", "ExternalSourceData", org.exolab.castor.xml.NodeType.Attribute); 211 desc.setImmutable(true); 212 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 213 public java.lang.Object getValue( java.lang.Object object ) 214 throws IllegalStateException 215 { 216 DataSourceDefinition target = (DataSourceDefinition) object; 217 return target.getExternalSourceData(); 218 } 219 public void setValue( java.lang.Object object, java.lang.Object value) 220 throws IllegalStateException , IllegalArgumentException 221 { 222 try { 223 DataSourceDefinition target = (DataSourceDefinition) object; 224 target.setExternalSourceData( (java.lang.String ) value); 225 } 226 catch (java.lang.Exception ex) { 227 throw new IllegalStateException (ex.toString()); 228 } 229 } 230 public java.lang.Object newInstance( java.lang.Object parent ) { 231 return null; 232 } 233 } ); 234 desc.setHandler(handler); 235 addFieldDescriptor(desc); 236 237 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 239 { StringValidator typeValidator = new StringValidator(); 241 typeValidator.setWhiteSpace("preserve"); 242 fieldValidator.setValidator(typeValidator); 243 } 244 desc.setValidator(fieldValidator); 245 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_externalConnectionString", "ExternalConnectionString", org.exolab.castor.xml.NodeType.Attribute); 247 desc.setImmutable(true); 248 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 249 public java.lang.Object getValue( java.lang.Object object ) 250 throws IllegalStateException 251 { 252 DataSourceDefinition target = (DataSourceDefinition) object; 253 return target.getExternalConnectionString(); 254 } 255 public void setValue( java.lang.Object object, java.lang.Object value) 256 throws IllegalStateException , IllegalArgumentException 257 { 258 try { 259 DataSourceDefinition target = (DataSourceDefinition) object; 260 target.setExternalConnectionString( (java.lang.String ) value); 261 } 262 catch (java.lang.Exception ex) { 263 throw new IllegalStateException (ex.toString()); 264 } 265 } 266 public java.lang.Object newInstance( java.lang.Object parent ) { 267 return null; 268 } 269 } ); 270 desc.setHandler(handler); 271 addFieldDescriptor(desc); 272 273 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 275 { StringValidator typeValidator = new StringValidator(); 277 typeValidator.setWhiteSpace("preserve"); 278 fieldValidator.setValidator(typeValidator); 279 } 280 desc.setValidator(fieldValidator); 281 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_externalConnectionClassName", "ExternalConnectionClassName", org.exolab.castor.xml.NodeType.Attribute); 283 desc.setImmutable(true); 284 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 285 public java.lang.Object getValue( java.lang.Object object ) 286 throws IllegalStateException 287 { 288 DataSourceDefinition target = (DataSourceDefinition) object; 289 return target.getExternalConnectionClassName(); 290 } 291 public void setValue( java.lang.Object object, java.lang.Object value) 292 throws IllegalStateException , IllegalArgumentException 293 { 294 try { 295 DataSourceDefinition target = (DataSourceDefinition) object; 296 target.setExternalConnectionClassName( (java.lang.String ) value); 297 } 298 catch (java.lang.Exception ex) { 299 throw new IllegalStateException (ex.toString()); 300 } 301 } 302 public java.lang.Object newInstance( java.lang.Object parent ) { 303 return null; 304 } 305 } ); 306 desc.setHandler(handler); 307 addFieldDescriptor(desc); 308 309 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 311 { StringValidator typeValidator = new StringValidator(); 313 typeValidator.setWhiteSpace("preserve"); 314 fieldValidator.setValidator(typeValidator); 315 } 316 desc.setValidator(fieldValidator); 317 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_externalConnectionLocalUrl", "ExternalConnectionLocalUrl", org.exolab.castor.xml.NodeType.Attribute); 319 desc.setImmutable(true); 320 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 321 public java.lang.Object getValue( java.lang.Object object ) 322 throws IllegalStateException 323 { 324 DataSourceDefinition target = (DataSourceDefinition) object; 325 return target.getExternalConnectionLocalUrl(); 326 } 327 public void setValue( java.lang.Object object, java.lang.Object value) 328 throws IllegalStateException , IllegalArgumentException 329 { 330 try { 331 DataSourceDefinition target = (DataSourceDefinition) object; 332 target.setExternalConnectionLocalUrl( (java.lang.String ) value); 333 } 334 catch (java.lang.Exception ex) { 335 throw new IllegalStateException (ex.toString()); 336 } 337 } 338 public java.lang.Object newInstance( java.lang.Object parent ) { 339 return null; 340 } 341 } ); 342 desc.setHandler(handler); 343 addFieldDescriptor(desc); 344 345 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 347 { StringValidator typeValidator = new StringValidator(); 349 typeValidator.setWhiteSpace("preserve"); 350 fieldValidator.setValidator(typeValidator); 351 } 352 desc.setValidator(fieldValidator); 353 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_externalConnectionDistributedUrl", "ExternalConnectionDistributedUrl", org.exolab.castor.xml.NodeType.Attribute); 355 desc.setImmutable(true); 356 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 357 public java.lang.Object getValue( java.lang.Object object ) 358 throws IllegalStateException 359 { 360 DataSourceDefinition target = (DataSourceDefinition) object; 361 return target.getExternalConnectionDistributedUrl(); 362 } 363 public void setValue( java.lang.Object object, java.lang.Object value) 364 throws IllegalStateException , IllegalArgumentException 365 { 366 try { 367 DataSourceDefinition target = (DataSourceDefinition) object; 368 target.setExternalConnectionDistributedUrl( (java.lang.String ) value); 369 } 370 catch (java.lang.Exception ex) { 371 throw new IllegalStateException (ex.toString()); 372 } 373 } 374 public java.lang.Object newInstance( java.lang.Object parent ) { 375 return null; 376 } 377 } ); 378 desc.setHandler(handler); 379 addFieldDescriptor(desc); 380 381 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 383 { StringValidator typeValidator = new StringValidator(); 385 typeValidator.setWhiteSpace("preserve"); 386 fieldValidator.setValidator(typeValidator); 387 } 388 desc.setValidator(fieldValidator); 389 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_externalConnectionUser", "ExternalConnectionUser", org.exolab.castor.xml.NodeType.Attribute); 391 desc.setImmutable(true); 392 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 393 public java.lang.Object getValue( java.lang.Object object ) 394 throws IllegalStateException 395 { 396 DataSourceDefinition target = (DataSourceDefinition) object; 397 return target.getExternalConnectionUser(); 398 } 399 public void setValue( java.lang.Object object, java.lang.Object value) 400 throws IllegalStateException , IllegalArgumentException 401 { 402 try { 403 DataSourceDefinition target = (DataSourceDefinition) object; 404 target.setExternalConnectionUser( (java.lang.String ) value); 405 } 406 catch (java.lang.Exception ex) { 407 throw new IllegalStateException (ex.toString()); 408 } 409 } 410 public java.lang.Object newInstance( java.lang.Object parent ) { 411 return null; 412 } 413 } ); 414 desc.setHandler(handler); 415 addFieldDescriptor(desc); 416 417 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 419 { StringValidator typeValidator = new StringValidator(); 421 typeValidator.setWhiteSpace("preserve"); 422 fieldValidator.setValidator(typeValidator); 423 } 424 desc.setValidator(fieldValidator); 425 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_externalConnectionPassword", "ExternalConnectionPassword", org.exolab.castor.xml.NodeType.Attribute); 427 desc.setImmutable(true); 428 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 429 public java.lang.Object getValue( java.lang.Object object ) 430 throws IllegalStateException 431 { 432 DataSourceDefinition target = (DataSourceDefinition) object; 433 return target.getExternalConnectionPassword(); 434 } 435 public void setValue( java.lang.Object object, java.lang.Object value) 436 throws IllegalStateException , IllegalArgumentException 437 { 438 try { 439 DataSourceDefinition target = (DataSourceDefinition) object; 440 target.setExternalConnectionPassword( (java.lang.String ) value); 441 } 442 catch (java.lang.Exception ex) { 443 throw new IllegalStateException (ex.toString()); 444 } 445 } 446 public java.lang.Object newInstance( java.lang.Object parent ) { 447 return null; 448 } 449 } ); 450 desc.setHandler(handler); 451 addFieldDescriptor(desc); 452 453 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 455 { StringValidator typeValidator = new StringValidator(); 457 typeValidator.setWhiteSpace("preserve"); 458 fieldValidator.setValidator(typeValidator); 459 } 460 desc.setValidator(fieldValidator); 461 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_datePattern", "DatePattern", org.exolab.castor.xml.NodeType.Attribute); 463 desc.setImmutable(true); 464 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 465 public java.lang.Object getValue( java.lang.Object object ) 466 throws IllegalStateException 467 { 468 DataSourceDefinition target = (DataSourceDefinition) object; 469 return target.getDatePattern(); 470 } 471 public void setValue( java.lang.Object object, java.lang.Object value) 472 throws IllegalStateException , IllegalArgumentException 473 { 474 try { 475 DataSourceDefinition target = (DataSourceDefinition) object; 476 target.setDatePattern( (java.lang.String ) value); 477 } 478 catch (java.lang.Exception ex) { 479 throw new IllegalStateException (ex.toString()); 480 } 481 } 482 public java.lang.Object newInstance( java.lang.Object parent ) { 483 return null; 484 } 485 } ); 486 desc.setHandler(handler); 487 addFieldDescriptor(desc); 488 489 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 491 { StringValidator typeValidator = new StringValidator(); 493 typeValidator.setWhiteSpace("preserve"); 494 fieldValidator.setValidator(typeValidator); 495 } 496 desc.setValidator(fieldValidator); 497 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_dateTimePattern", "DateTimePattern", org.exolab.castor.xml.NodeType.Attribute); 499 desc.setImmutable(true); 500 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 501 public java.lang.Object getValue( java.lang.Object object ) 502 throws IllegalStateException 503 { 504 DataSourceDefinition target = (DataSourceDefinition) object; 505 return target.getDateTimePattern(); 506 } 507 public void setValue( java.lang.Object object, java.lang.Object value) 508 throws IllegalStateException , IllegalArgumentException 509 { 510 try { 511 DataSourceDefinition target = (DataSourceDefinition) object; 512 target.setDateTimePattern( (java.lang.String ) value); 513 } 514 catch (java.lang.Exception ex) { 515 throw new IllegalStateException (ex.toString()); 516 } 517 } 518 public java.lang.Object newInstance( java.lang.Object parent ) { 519 return null; 520 } 521 } ); 522 desc.setHandler(handler); 523 addFieldDescriptor(desc); 524 525 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 527 { StringValidator typeValidator = new StringValidator(); 529 typeValidator.setWhiteSpace("preserve"); 530 fieldValidator.setValidator(typeValidator); 531 } 532 desc.setValidator(fieldValidator); 533 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_sheetName", "SheetName", org.exolab.castor.xml.NodeType.Attribute); 535 desc.setImmutable(true); 536 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 537 public java.lang.Object getValue( java.lang.Object object ) 538 throws IllegalStateException 539 { 540 DataSourceDefinition target = (DataSourceDefinition) object; 541 return target.getSheetName(); 542 } 543 public void setValue( java.lang.Object object, java.lang.Object value) 544 throws IllegalStateException , IllegalArgumentException 545 { 546 try { 547 DataSourceDefinition target = (DataSourceDefinition) object; 548 target.setSheetName( (java.lang.String ) value); 549 } 550 catch (java.lang.Exception ex) { 551 throw new IllegalStateException (ex.toString()); 552 } 553 } 554 public java.lang.Object newInstance( java.lang.Object parent ) { 555 return null; 556 } 557 } ); 558 desc.setHandler(handler); 559 addFieldDescriptor(desc); 560 561 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 563 { StringValidator typeValidator = new StringValidator(); 565 typeValidator.setWhiteSpace("preserve"); 566 fieldValidator.setValidator(typeValidator); 567 } 568 desc.setValidator(fieldValidator); 569 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_dataInitialCell", "DataInitialCell", org.exolab.castor.xml.NodeType.Attribute); 571 desc.setImmutable(true); 572 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 573 public java.lang.Object getValue( java.lang.Object object ) 574 throws IllegalStateException 575 { 576 DataSourceDefinition target = (DataSourceDefinition) object; 577 return target.getDataInitialCell(); 578 } 579 public void setValue( java.lang.Object object, java.lang.Object value) 580 throws IllegalStateException , IllegalArgumentException 581 { 582 try { 583 DataSourceDefinition target = (DataSourceDefinition) object; 584 target.setDataInitialCell( (java.lang.String ) value); 585 } 586 catch (java.lang.Exception ex) { 587 throw new IllegalStateException (ex.toString()); 588 } 589 } 590 public java.lang.Object newInstance( java.lang.Object parent ) { 591 return null; 592 } 593 } ); 594 desc.setHandler(handler); 595 addFieldDescriptor(desc); 596 597 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 599 { StringValidator typeValidator = new StringValidator(); 601 typeValidator.setWhiteSpace("preserve"); 602 fieldValidator.setValidator(typeValidator); 603 } 604 desc.setValidator(fieldValidator); 605 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_dataEndingCell", "DataEndingCell", org.exolab.castor.xml.NodeType.Attribute); 607 desc.setImmutable(true); 608 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 609 public java.lang.Object getValue( java.lang.Object object ) 610 throws IllegalStateException 611 { 612 DataSourceDefinition target = (DataSourceDefinition) object; 613 return target.getDataEndingCell(); 614 } 615 public void setValue( java.lang.Object object, java.lang.Object value) 616 throws IllegalStateException , IllegalArgumentException 617 { 618 try { 619 DataSourceDefinition target = (DataSourceDefinition) object; 620 target.setDataEndingCell( (java.lang.String ) value); 621 } 622 catch (java.lang.Exception ex) { 623 throw new IllegalStateException (ex.toString()); 624 } 625 } 626 public java.lang.Object newInstance( java.lang.Object parent ) { 627 return null; 628 } 629 } ); 630 desc.setHandler(handler); 631 addFieldDescriptor(desc); 632 633 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 635 { StringValidator typeValidator = new StringValidator(); 637 typeValidator.setWhiteSpace("preserve"); 638 fieldValidator.setValidator(typeValidator); 639 } 640 desc.setValidator(fieldValidator); 641 643 } 645 646 650 653 public org.exolab.castor.mapping.AccessMode getAccessMode() 654 { 655 return null; 656 } 658 661 public org.exolab.castor.mapping.ClassDescriptor getExtends() 662 { 663 return null; 664 } 666 669 public org.exolab.castor.mapping.FieldDescriptor getIdentity() 670 { 671 return identity; 672 } 674 677 public java.lang.Class getJavaClass() 678 { 679 return com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition.class; 680 } 682 685 public java.lang.String getNameSpacePrefix() 686 { 687 return nsPrefix; 688 } 690 693 public java.lang.String getNameSpaceURI() 694 { 695 return nsURI; 696 } 698 701 public org.exolab.castor.xml.TypeValidator getValidator() 702 { 703 return this; 704 } 706 709 public java.lang.String getXMLName() 710 { 711 return xmlName; 712 } 714 } 715 | Popular Tags |