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 ReportSourceDefinitionDescriptor 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 ReportSourceDefinitionDescriptor() { 57 super(); 58 xmlName = "ReportSourceDefinition"; 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 ReportSourceDefinition target = (ReportSourceDefinition) 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 ReportSourceDefinition target = (ReportSourceDefinition) 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.Boolean.TYPE, "_cached", "Cached", org.exolab.castor.xml.NodeType.Attribute); 107 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 108 public java.lang.Object getValue( java.lang.Object object ) 109 throws IllegalStateException 110 { 111 ReportSourceDefinition target = (ReportSourceDefinition) object; 112 if(!target.hasCached()) 113 return null; 114 return new Boolean (target.getCached()); 115 } 116 public void setValue( java.lang.Object object, java.lang.Object value) 117 throws IllegalStateException , IllegalArgumentException 118 { 119 try { 120 ReportSourceDefinition target = (ReportSourceDefinition) object; 121 if (value == null) return; 123 124 target.setCached( ((Boolean )value).booleanValue()); 125 } 126 catch (java.lang.Exception ex) { 127 throw new IllegalStateException (ex.toString()); 128 } 129 } 130 public java.lang.Object newInstance( java.lang.Object parent ) { 131 return null; 132 } 133 } ); 134 desc.setHandler(handler); 135 desc.setRequired(true); 136 addFieldDescriptor(desc); 137 138 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 140 fieldValidator.setMinOccurs(1); 141 { BooleanValidator typeValidator = new BooleanValidator(); 143 fieldValidator.setValidator(typeValidator); 144 } 145 desc.setValidator(fieldValidator); 146 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.math.BigDecimal .class, "_expiration", "Expiration", org.exolab.castor.xml.NodeType.Attribute); 148 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 149 public java.lang.Object getValue( java.lang.Object object ) 150 throws IllegalStateException 151 { 152 ReportSourceDefinition target = (ReportSourceDefinition) object; 153 return target.getExpiration(); 154 } 155 public void setValue( java.lang.Object object, java.lang.Object value) 156 throws IllegalStateException , IllegalArgumentException 157 { 158 try { 159 ReportSourceDefinition target = (ReportSourceDefinition) object; 160 target.setExpiration( (java.math.BigDecimal ) value); 161 } 162 catch (java.lang.Exception ex) { 163 throw new IllegalStateException (ex.toString()); 164 } 165 } 166 public java.lang.Object newInstance( java.lang.Object parent ) { 167 return new java.math.BigDecimal (0); 168 } 169 } ); 170 desc.setHandler(handler); 171 desc.setImmutable(true); 172 addFieldDescriptor(desc); 173 174 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 176 { DecimalValidator typeValidator = new DecimalValidator(); 178 fieldValidator.setValidator(typeValidator); 179 } 180 desc.setValidator(fieldValidator); 181 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_incrementalDimension", "IncrementalDimension", 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 ReportSourceDefinition target = (ReportSourceDefinition) object; 189 return target.getIncrementalDimension(); 190 } 191 public void setValue( java.lang.Object object, java.lang.Object value) 192 throws IllegalStateException , IllegalArgumentException 193 { 194 try { 195 ReportSourceDefinition target = (ReportSourceDefinition) object; 196 target.setIncrementalDimension( (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 addFieldDescriptor(desc); 208 209 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 211 { StringValidator typeValidator = new StringValidator(); 213 typeValidator.setWhiteSpace("preserve"); 214 fieldValidator.setValidator(typeValidator); 215 } 216 desc.setValidator(fieldValidator); 217 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_multilanguage", "Multilanguage", org.exolab.castor.xml.NodeType.Attribute); 219 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 220 public java.lang.Object getValue( java.lang.Object object ) 221 throws IllegalStateException 222 { 223 ReportSourceDefinition target = (ReportSourceDefinition) object; 224 if(!target.hasMultilanguage()) 225 return null; 226 return new Boolean (target.getMultilanguage()); 227 } 228 public void setValue( java.lang.Object object, java.lang.Object value) 229 throws IllegalStateException , IllegalArgumentException 230 { 231 try { 232 ReportSourceDefinition target = (ReportSourceDefinition) object; 233 if (value == null) { 235 target.deleteMultilanguage(); 236 return; 237 } 238 target.setMultilanguage( ((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 addFieldDescriptor(desc); 250 251 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 253 { BooleanValidator typeValidator = new BooleanValidator(); 255 fieldValidator.setValidator(typeValidator); 256 } 257 desc.setValidator(fieldValidator); 258 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_maxRowsDimensionReference", "MaxRowsDimensionReference", org.exolab.castor.xml.NodeType.Attribute); 260 desc.setImmutable(true); 261 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 262 public java.lang.Object getValue( java.lang.Object object ) 263 throws IllegalStateException 264 { 265 ReportSourceDefinition target = (ReportSourceDefinition) object; 266 return target.getMaxRowsDimensionReference(); 267 } 268 public void setValue( java.lang.Object object, java.lang.Object value) 269 throws IllegalStateException , IllegalArgumentException 270 { 271 try { 272 ReportSourceDefinition target = (ReportSourceDefinition) object; 273 target.setMaxRowsDimensionReference( (java.lang.String ) value); 274 } 275 catch (java.lang.Exception ex) { 276 throw new IllegalStateException (ex.toString()); 277 } 278 } 279 public java.lang.Object newInstance( java.lang.Object parent ) { 280 return null; 281 } 282 } ); 283 desc.setHandler(handler); 284 addFieldDescriptor(desc); 285 286 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 288 { StringValidator typeValidator = new StringValidator(); 290 typeValidator.setWhiteSpace("preserve"); 291 fieldValidator.setValidator(typeValidator); 292 } 293 desc.setValidator(fieldValidator); 294 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_maxRowCount", "MaxRowCount", org.exolab.castor.xml.NodeType.Attribute); 296 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 297 public java.lang.Object getValue( java.lang.Object object ) 298 throws IllegalStateException 299 { 300 ReportSourceDefinition target = (ReportSourceDefinition) object; 301 if(!target.hasMaxRowCount()) 302 return null; 303 return new Integer (target.getMaxRowCount()); 304 } 305 public void setValue( java.lang.Object object, java.lang.Object value) 306 throws IllegalStateException , IllegalArgumentException 307 { 308 try { 309 ReportSourceDefinition target = (ReportSourceDefinition) object; 310 if (value == null) { 312 target.deleteMaxRowCount(); 313 return; 314 } 315 target.setMaxRowCount( ((Integer )value).intValue()); 316 } 317 catch (java.lang.Exception ex) { 318 throw new IllegalStateException (ex.toString()); 319 } 320 } 321 public java.lang.Object newInstance( java.lang.Object parent ) { 322 return null; 323 } 324 } ); 325 desc.setHandler(handler); 326 addFieldDescriptor(desc); 327 328 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 330 { IntegerValidator typeValidator = new IntegerValidator(); 332 fieldValidator.setValidator(typeValidator); 333 } 334 desc.setValidator(fieldValidator); 335 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_datawarehouseSaved", "DatawarehouseSaved", org.exolab.castor.xml.NodeType.Attribute); 337 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 338 public java.lang.Object getValue( java.lang.Object object ) 339 throws IllegalStateException 340 { 341 ReportSourceDefinition target = (ReportSourceDefinition) object; 342 if(!target.hasDatawarehouseSaved()) 343 return null; 344 return new Boolean (target.getDatawarehouseSaved()); 345 } 346 public void setValue( java.lang.Object object, java.lang.Object value) 347 throws IllegalStateException , IllegalArgumentException 348 { 349 try { 350 ReportSourceDefinition target = (ReportSourceDefinition) object; 351 if (value == null) { 353 target.deleteDatawarehouseSaved(); 354 return; 355 } 356 target.setDatawarehouseSaved( ((Boolean )value).booleanValue()); 357 } 358 catch (java.lang.Exception ex) { 359 throw new IllegalStateException (ex.toString()); 360 } 361 } 362 public java.lang.Object newInstance( java.lang.Object parent ) { 363 return null; 364 } 365 } ); 366 desc.setHandler(handler); 367 addFieldDescriptor(desc); 368 369 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 371 { BooleanValidator typeValidator = new BooleanValidator(); 373 fieldValidator.setValidator(typeValidator); 374 } 375 desc.setValidator(fieldValidator); 376 378 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions.class, "_dimensionSourceDefinitions", "DimensionSourceDefinitions", org.exolab.castor.xml.NodeType.Element); 380 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 381 public java.lang.Object getValue( java.lang.Object object ) 382 throws IllegalStateException 383 { 384 ReportSourceDefinition target = (ReportSourceDefinition) object; 385 return target.getDimensionSourceDefinitions(); 386 } 387 public void setValue( java.lang.Object object, java.lang.Object value) 388 throws IllegalStateException , IllegalArgumentException 389 { 390 try { 391 ReportSourceDefinition target = (ReportSourceDefinition) object; 392 target.setDimensionSourceDefinitions( (com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions) value); 393 } 394 catch (java.lang.Exception ex) { 395 throw new IllegalStateException (ex.toString()); 396 } 397 } 398 public java.lang.Object newInstance( java.lang.Object parent ) { 399 return new com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions(); 400 } 401 } ); 402 desc.setHandler(handler); 403 desc.setRequired(true); 404 desc.setMultivalued(false); 405 addFieldDescriptor(desc); 406 407 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 409 fieldValidator.setMinOccurs(1); 410 { } 412 desc.setValidator(fieldValidator); 413 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions.class, "_metricSourceDefinitions", "MetricSourceDefinitions", org.exolab.castor.xml.NodeType.Element); 415 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 416 public java.lang.Object getValue( java.lang.Object object ) 417 throws IllegalStateException 418 { 419 ReportSourceDefinition target = (ReportSourceDefinition) object; 420 return target.getMetricSourceDefinitions(); 421 } 422 public void setValue( java.lang.Object object, java.lang.Object value) 423 throws IllegalStateException , IllegalArgumentException 424 { 425 try { 426 ReportSourceDefinition target = (ReportSourceDefinition) object; 427 target.setMetricSourceDefinitions( (com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions) value); 428 } 429 catch (java.lang.Exception ex) { 430 throw new IllegalStateException (ex.toString()); 431 } 432 } 433 public java.lang.Object newInstance( java.lang.Object parent ) { 434 return new com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions(); 435 } 436 } ); 437 desc.setHandler(handler); 438 desc.setRequired(true); 439 desc.setMultivalued(false); 440 addFieldDescriptor(desc); 441 442 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 444 fieldValidator.setMinOccurs(1); 445 { } 447 desc.setValidator(fieldValidator); 448 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.FilterDefinitions.class, "_filterDefinitions", "FilterDefinitions", org.exolab.castor.xml.NodeType.Element); 450 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 451 public java.lang.Object getValue( java.lang.Object object ) 452 throws IllegalStateException 453 { 454 ReportSourceDefinition target = (ReportSourceDefinition) object; 455 return target.getFilterDefinitions(); 456 } 457 public void setValue( java.lang.Object object, java.lang.Object value) 458 throws IllegalStateException , IllegalArgumentException 459 { 460 try { 461 ReportSourceDefinition target = (ReportSourceDefinition) object; 462 target.setFilterDefinitions( (com.calipso.reportgenerator.reportdefinitions.FilterDefinitions) value); 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 new com.calipso.reportgenerator.reportdefinitions.FilterDefinitions(); 470 } 471 } ); 472 desc.setHandler(handler); 473 desc.setMultivalued(false); 474 addFieldDescriptor(desc); 475 476 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 478 { } 480 desc.setValidator(fieldValidator); 481 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions.class, "_dataSourceDefinitions", "DataSourceDefinitions", org.exolab.castor.xml.NodeType.Element); 483 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 484 public java.lang.Object getValue( java.lang.Object object ) 485 throws IllegalStateException 486 { 487 ReportSourceDefinition target = (ReportSourceDefinition) object; 488 return target.getDataSourceDefinitions(); 489 } 490 public void setValue( java.lang.Object object, java.lang.Object value) 491 throws IllegalStateException , IllegalArgumentException 492 { 493 try { 494 ReportSourceDefinition target = (ReportSourceDefinition) object; 495 target.setDataSourceDefinitions( (com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions) value); 496 } 497 catch (java.lang.Exception ex) { 498 throw new IllegalStateException (ex.toString()); 499 } 500 } 501 public java.lang.Object newInstance( java.lang.Object parent ) { 502 return new com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions(); 503 } 504 } ); 505 desc.setHandler(handler); 506 desc.setRequired(true); 507 desc.setMultivalued(false); 508 addFieldDescriptor(desc); 509 510 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 512 fieldValidator.setMinOccurs(1); 513 { } 515 desc.setValidator(fieldValidator); 516 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.ParameterValues.class, "_parameterValues", "ParameterValues", org.exolab.castor.xml.NodeType.Element); 518 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 519 public java.lang.Object getValue( java.lang.Object object ) 520 throws IllegalStateException 521 { 522 ReportSourceDefinition target = (ReportSourceDefinition) object; 523 return target.getParameterValues(); 524 } 525 public void setValue( java.lang.Object object, java.lang.Object value) 526 throws IllegalStateException , IllegalArgumentException 527 { 528 try { 529 ReportSourceDefinition target = (ReportSourceDefinition) object; 530 target.setParameterValues( (com.calipso.reportgenerator.reportdefinitions.ParameterValues) value); 531 } 532 catch (java.lang.Exception ex) { 533 throw new IllegalStateException (ex.toString()); 534 } 535 } 536 public java.lang.Object newInstance( java.lang.Object parent ) { 537 return new com.calipso.reportgenerator.reportdefinitions.ParameterValues(); 538 } 539 } ); 540 desc.setHandler(handler); 541 desc.setMultivalued(false); 542 addFieldDescriptor(desc); 543 544 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 546 { } 548 desc.setValidator(fieldValidator); 549 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.Localizations.class, "_localizations", "Localizations", org.exolab.castor.xml.NodeType.Element); 551 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 552 public java.lang.Object getValue( java.lang.Object object ) 553 throws IllegalStateException 554 { 555 ReportSourceDefinition target = (ReportSourceDefinition) object; 556 return target.getLocalizations(); 557 } 558 public void setValue( java.lang.Object object, java.lang.Object value) 559 throws IllegalStateException , IllegalArgumentException 560 { 561 try { 562 ReportSourceDefinition target = (ReportSourceDefinition) object; 563 target.setLocalizations( (com.calipso.reportgenerator.reportdefinitions.Localizations) value); 564 } 565 catch (java.lang.Exception ex) { 566 throw new IllegalStateException (ex.toString()); 567 } 568 } 569 public java.lang.Object newInstance( java.lang.Object parent ) { 570 return new com.calipso.reportgenerator.reportdefinitions.Localizations(); 571 } 572 } ); 573 desc.setHandler(handler); 574 desc.setMultivalued(false); 575 addFieldDescriptor(desc); 576 577 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 579 { } 581 desc.setValidator(fieldValidator); 582 } 584 585 589 592 public org.exolab.castor.mapping.AccessMode getAccessMode() 593 { 594 return null; 595 } 597 600 public org.exolab.castor.mapping.ClassDescriptor getExtends() 601 { 602 return null; 603 } 605 608 public org.exolab.castor.mapping.FieldDescriptor getIdentity() 609 { 610 return identity; 611 } 613 616 public java.lang.Class getJavaClass() 617 { 618 return com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition.class; 619 } 621 624 public java.lang.String getNameSpacePrefix() 625 { 626 return nsPrefix; 627 } 629 632 public java.lang.String getNameSpaceURI() 633 { 634 return nsURI; 635 } 637 640 public org.exolab.castor.xml.TypeValidator getValidator() 641 { 642 return this; 643 } 645 648 public java.lang.String getXMLName() 649 { 650 return xmlName; 651 } 653 } 654 | Popular Tags |