1 /** 2 * Copyright © 2008-2012 NetAllied Systems GmbH, Ravensburg, Germany. 3 * 4 * Licensed under the MIT Open Source License, 5 * for details please see LICENSE file or the website 6 * http://www.opensource.org/licenses/mit-license.php 7 */ 8 package de.netallied.xsd2cppsax.TypeMapping; 9 10 import de.netallied.xsd2cppsax.Variety; 11 import de.netallied.xsd2cppsax.printers.FPrintfParserPrinter; 12 13 /** 14 * Contains C++ types/conversions for a XSD type. XSD types may be used as 15 * attribute or as char data and they may have different varieties ( 16 * {@link Variety}). Furthermore they may have simple type validation facet 17 * 'enumeration' in which case we generate an additional C++ type. All these 18 * different cases require different C++ code to be generated. This leads to a 19 * lot of code templates for each XSD type. 20 * 21 */ 22 public class TypeMap { 23 24 /** 25 * C++ type when XSD type is used as attribute with variety atomic. 26 */ 27 private String attrAtomicType; 28 29 /** 30 * C++ code to convert XSD type to C++ type when used as attribute with 31 * variety atomic. 32 */ 33 private String attrAtomicTypeConversion; 34 35 /** 36 * C++ code required after conversion when type is used as attribute with 37 * variety atomic. 38 */ 39 private String attrAtomicTypePostConversion; 40 41 /** 42 * C++ code required before conversion when type is used as attribute with 43 * variety atomic. 44 */ 45 private String attrAtomicTypePreConversion; 46 47 /** 48 * C++ type when XSD type is used as attribute with variety list. 49 */ 50 private String attrListType; 51 52 /** 53 * C++ code to convert XSD type to C++ type when used as attribute with 54 * variety list and list items shall be validated. 55 */ 56 private String attrListTypeConversionItemValidation; 57 58 /** 59 * C++ code to convert XSD type to C++ type when used as attribute with 60 * variety list and list items shall not be validated. 61 */ 62 private String attrListTypeConversionNoItemValidation; 63 64 /** 65 * C++ code required after conversion when type is used as attribute with 66 * variety list. 67 */ 68 private String attrListTypePostConversion; 69 70 /** 71 * C++ code required before conversion when type is used as attribute with 72 * variety list. 73 */ 74 private String attrListTypePreConversion; 75 76 /** 77 * C++ implementation of data-method when XSD type is used as char data with 78 * variety atomic. 79 */ 80 private String dataAtomicDataMethodImpl; 81 82 /** 83 * C++ implementation of data-method when XSD type is used as char data with 84 * variety atomic and has simple type validation facet pattern. 85 */ 86 private String dataAtomicDataMethodImplFacetPattern; 87 88 /** 89 * C++ type when XSD type is used as char data with variety atomic. 90 */ 91 private String dataAtomicType; 92 93 /** 94 * C++ code to convert XSD type to C++ type when used as char data with 95 * variety atomic. 96 */ 97 private String dataAtomicTypeConversion; 98 99 /** 100 * C++ code required after conversion when type is used as char data with 101 * variety atomic. 102 */ 103 private String dataAtomicTypePostConversion; 104 105 /** 106 * C++ code required before conversion when type is used as char data with 107 * variety atomic. 108 */ 109 private String dataAtomicTypePreConversion; 110 111 /** 112 * C++ implementation of generated validateEnd method when type is used as 113 * char data with variety atomic. 114 */ 115 private String dataAtomicValidateEndImpl; 116 117 /** 118 * C++ implementation of generated validateEnd method when type is used as 119 * char data with variety atomic and has simple type validation facet 120 * pattern. 121 */ 122 private String dataAtomicValidateEndImplFacetPattern; 123 124 /** 125 * C++ implementation of generated validateEnd method when type is used as 126 * char data with variety list and simple type validation shall not be used. 127 */ 128 private String dataListEnd; 129 130 /** 131 * C++ implementation of generated validateEnd method when type is used as 132 * char data with variety list and simple type validation shall be used. 133 */ 134 private String dataListEndValidation; 135 136 /** 137 * C++ type when XSD type is used as char data with variety list. 138 */ 139 private String dataListType; 140 141 /** 142 * C++ code to convert XSD type to C++ type when used as char data with 143 * variety list and simple type validation shall not be used. 144 */ 145 private String dataListTypeConversion; 146 147 /** 148 * C++ code to convert XSD type to C++ type when used as char data with 149 * variety list and simple type validation shall be used. 150 */ 151 private String dataListTypeConversionValidation; 152 153 /** 154 * C++ code to convert XSD type to C++ type when used as attribute with 155 * variety atomic and XSD type has simple type validation facet enumeration. 156 */ 157 private String enumAttrAtomicTypeConversion; 158 159 /** 160 * C++ code required after conversion when type is used as attribute with 161 * variety atomic and XSD type has simple type validation facet enumeration. 162 */ 163 private String enumAttrAtomicTypePostConversion; 164 165 /** 166 * C++ code required before conversion when type is used as attribute with 167 * variety atomic and XSD type has simple type validation facet enumeration. 168 */ 169 private String enumAttrAtomicTypePreConversion; 170 171 /** 172 * C++ code to convert XSD type to C++ type when used as char data with 173 * variety atomic and XSD type has simple type validation facet enumeration. 174 */ 175 private String enumDataAtomicTypeConversion; 176 177 /** 178 * C++ implementation of generated validateEnd method when type is used as 179 * char data with variety list and XSD type has simple type validation facet 180 * enumeration. 181 */ 182 private String enumDataListEnd; 183 184 /** 185 * C++ code to convert XSD type to C++ type when used as char data with 186 * variety list and XSD type has simple type validation facet enumeration. 187 */ 188 private String enumDataListTypeConversion; 189 190 /** 191 * C++ code to initialize C++ type. Required when C++ classes are used. 192 */ 193 private String initialize; 194 195 /** 196 * C++ code required before initialization of C++ type when XSD type is used 197 * with variety atomic. Required when C++ classes are used. 198 */ 199 private String initializePreAtomic; 200 201 /** 202 * C++ code required before initialization of C++ type when XSD type is used 203 * with variety list. Required when C++ classes are used. 204 */ 205 private String initializePreList; 206 207 /** 208 * C++ code to convert C++ type to a C++ string. Used by 209 * {@link FPrintfParserPrinter}. Required when C++ classes are used. 210 */ 211 private String toString; 212 213 /** 214 * C++ type when XSD type is used as member of a XSD type with variety 215 * union. 216 */ 217 private String unionAtomicType; 218 219 /** 220 * C++ code to convert XSD union member type. 221 */ 222 private String unionAtomicTypeConversion; 223 224 /** 225 * <p> 226 * C++ Type a XSD enum is based on. 227 * </p> 228 * <p> 229 * E.g. string: 230 * </p> 231 * 232 * <pre> 233 * <simpleType name="stringEnumType"> 234 * <restriction base="string"> 235 * <enumeration value="bli" /> 236 * <enumeration value="bla" /> 237 * <enumeration value="blub" /> 238 * </restriction> 239 * </simpleType> 240 * </pre> 241 * 242 * or float: 243 * 244 * <pre> 245 * <simpleType name="floatEnumType"> 246 * <restriction base="float"> 247 * <enumeration value="1.1" /> 248 * <enumeration value="2.2" /> 249 * <enumeration value="3.3" /> 250 * </restriction> 251 * </simpleType> 252 * </pre> 253 */ 254 private String unionEnumBaseType; 255 256 /** 257 * C++ code to convert XSD enum base type. 258 * 259 * @see #unionEnumBaseType 260 */ 261 private String unionEnumBaseTypeConversion; 262 263 /** 264 * Name of XSD type this object represents. 265 */ 266 private String xsdType; 267 268 /** 269 * Constructor. 270 */ TypeMap()271 public TypeMap() { 272 273 } 274 275 /** 276 * @see #attrAtomicType 277 */ getAttrAtomicType()278 public String getAttrAtomicType() { 279 return attrAtomicType; 280 } 281 282 /** 283 * @see #attrAtomicTypeConversion 284 */ getAttrAtomicTypeConversion()285 public String getAttrAtomicTypeConversion() { 286 return attrAtomicTypeConversion; 287 } 288 289 /** 290 * @see #attrAtomicTypePostConversion 291 */ getAttrAtomicTypePostConversion()292 public String getAttrAtomicTypePostConversion() { 293 return attrAtomicTypePostConversion; 294 } 295 296 /** 297 * @see #attrAtomicTypePreConversion 298 */ getAttrAtomicTypePreConversion()299 public String getAttrAtomicTypePreConversion() { 300 return attrAtomicTypePreConversion; 301 } 302 303 /** 304 * @see #attrListType 305 */ getAttrListType()306 public String getAttrListType() { 307 return attrListType; 308 } 309 310 /** 311 * @see #attrListTypeConversionItemValidation 312 */ getAttrListTypeConversionItemValidation()313 public String getAttrListTypeConversionItemValidation() { 314 return attrListTypeConversionItemValidation; 315 } 316 317 /** 318 * @see #attrListTypeConversionNoItemValidation 319 */ getAttrListTypeConversionNoItemValidation()320 public String getAttrListTypeConversionNoItemValidation() { 321 return attrListTypeConversionNoItemValidation; 322 } 323 324 /** 325 * @see #attrListTypePostConversion 326 */ getAttrListTypePostConversion()327 public String getAttrListTypePostConversion() { 328 return attrListTypePostConversion; 329 } 330 331 /** 332 * @see #attrListTypePreConversion 333 */ getAttrListTypePreConversion()334 public String getAttrListTypePreConversion() { 335 return attrListTypePreConversion; 336 } 337 338 /** 339 * @see #dataAtomicDataMethodImpl 340 */ getDataAtomicDataMethodImpl()341 public String getDataAtomicDataMethodImpl() { 342 return dataAtomicDataMethodImpl; 343 } 344 345 /** 346 * @see #dataAtomicDataMethodImplFacetPattern 347 */ getDataAtomicDataMethodImplFacetPattern()348 public String getDataAtomicDataMethodImplFacetPattern() { 349 return dataAtomicDataMethodImplFacetPattern; 350 } 351 352 /** 353 * @see #dataAtomicType 354 */ getDataAtomicType()355 public String getDataAtomicType() { 356 return dataAtomicType; 357 } 358 359 /** 360 * @see #dataAtomicTypeConversion 361 */ getDataAtomicTypeConversion()362 public String getDataAtomicTypeConversion() { 363 return dataAtomicTypeConversion; 364 } 365 366 /** 367 * @see #dataAtomicTypePostConversion 368 */ getDataAtomicTypePostConversion()369 public String getDataAtomicTypePostConversion() { 370 return dataAtomicTypePostConversion; 371 } 372 373 /** 374 * @see #dataAtomicTypePreConversion 375 */ getDataAtomicTypePreConversion()376 public String getDataAtomicTypePreConversion() { 377 return dataAtomicTypePreConversion; 378 } 379 380 /** 381 * @see #dataAtomicValidateEndImpl 382 */ getDataAtomicValidateEndImpl()383 public String getDataAtomicValidateEndImpl() { 384 return dataAtomicValidateEndImpl; 385 } 386 387 /** 388 * @see #dataAtomicValidateEndImplFacetPattern 389 */ getDataAtomicValidateEndImplFacetPattern()390 public String getDataAtomicValidateEndImplFacetPattern() { 391 return dataAtomicValidateEndImplFacetPattern; 392 } 393 394 /** 395 * @see #dataListEnd 396 */ getDataListEnd()397 public String getDataListEnd() { 398 return dataListEnd; 399 } 400 401 /** 402 * @see #dataListEndValidation 403 */ getDataListEndValidation()404 public String getDataListEndValidation() { 405 return dataListEndValidation; 406 } 407 408 /** 409 * @see #dataListType 410 */ getDataListType()411 public String getDataListType() { 412 return dataListType; 413 } 414 415 /** 416 * @see #dataListTypeConversion 417 */ getDataListTypeConversion()418 public String getDataListTypeConversion() { 419 return dataListTypeConversion; 420 } 421 422 /** 423 * @see #dataListTypeConversionValidation 424 */ getDataListTypeConversionValidation()425 public String getDataListTypeConversionValidation() { 426 return dataListTypeConversionValidation; 427 } 428 429 /** 430 * @see #enumAttrAtomicTypeConversion 431 */ getEnumAttrAtomicTypeConversion()432 public String getEnumAttrAtomicTypeConversion() { 433 return enumAttrAtomicTypeConversion; 434 } 435 436 /** 437 * @see #enumAttrAtomicTypePostConversion 438 */ getEnumAttrAtomicTypePostConversion()439 public String getEnumAttrAtomicTypePostConversion() { 440 return enumAttrAtomicTypePostConversion; 441 } 442 443 /** 444 * @see #enumAttrAtomicTypePreConversion 445 */ getEnumAttrAtomicTypePreConversion()446 public String getEnumAttrAtomicTypePreConversion() { 447 return enumAttrAtomicTypePreConversion; 448 } 449 450 /** 451 * @see #enumDataAtomicTypeConversion 452 */ getEnumDataAtomicTypeConversion()453 public String getEnumDataAtomicTypeConversion() { 454 return enumDataAtomicTypeConversion; 455 } 456 457 /** 458 * @see #enumDataListEnd 459 */ getEnumDataListEnd()460 public String getEnumDataListEnd() { 461 return enumDataListEnd; 462 } 463 464 /** 465 * @see #enumDataListTypeConversion 466 */ getEnumDataListTypeConversion()467 public String getEnumDataListTypeConversion() { 468 return enumDataListTypeConversion; 469 } 470 471 /** 472 * @see #initialize 473 */ getInitialize()474 public String getInitialize() { 475 return initialize; 476 } 477 478 /** 479 * @see #initializePreAtomic 480 */ getInitializePreAtomic()481 public String getInitializePreAtomic() { 482 return initializePreAtomic; 483 } 484 485 /** 486 * @see #initializePreList 487 */ getInitializePreList()488 public String getInitializePreList() { 489 return initializePreList; 490 } 491 492 /** 493 * @see #toString 494 */ getToString()495 public String getToString() { 496 return toString; 497 } 498 499 /** 500 * @see #unionAtomicType 501 */ getUnionAtomicType()502 public String getUnionAtomicType() { 503 return unionAtomicType; 504 } 505 506 /** 507 * @see #unionAtomicTypeConversion 508 */ getUnionAtomicTypeConversion()509 public String getUnionAtomicTypeConversion() { 510 return unionAtomicTypeConversion; 511 } 512 513 /** 514 * @see #unionEnumBaseType 515 */ getUnionEnumBaseType()516 public String getUnionEnumBaseType() { 517 return unionEnumBaseType; 518 } 519 520 /** 521 * @see #unionEnumBaseTypeConversion 522 */ getUnionEnumBaseTypeConversion()523 public String getUnionEnumBaseTypeConversion() { 524 return unionEnumBaseTypeConversion; 525 } 526 527 /** 528 * @see #xsdType 529 */ getXsdType()530 public String getXsdType() { 531 return xsdType; 532 } 533 534 /** 535 * @see #attrAtomicType 536 */ setAttrAtomicType(String attrAtomicType)537 public void setAttrAtomicType(String attrAtomicType) { 538 this.attrAtomicType = attrAtomicType; 539 } 540 541 /** 542 * @see #attrAtomicTypeConversion 543 */ setAttrAtomicTypeConversion(String attrAtomicTypeConversion)544 public void setAttrAtomicTypeConversion(String attrAtomicTypeConversion) { 545 this.attrAtomicTypeConversion = attrAtomicTypeConversion; 546 } 547 548 /** 549 * @see #attrAtomicTypePostConversion 550 */ setAttrAtomicTypePostConversion(String attrAtomicTypePostConversion)551 public void setAttrAtomicTypePostConversion(String attrAtomicTypePostConversion) { 552 this.attrAtomicTypePostConversion = attrAtomicTypePostConversion; 553 } 554 555 /** 556 * @see #attrAtomicTypePreConversion 557 */ setAttrAtomicTypePreConversion(String attrAtomicTypePreConversion)558 public void setAttrAtomicTypePreConversion(String attrAtomicTypePreConversion) { 559 this.attrAtomicTypePreConversion = attrAtomicTypePreConversion; 560 } 561 562 /** 563 * @see #attrListType 564 */ setAttrListType(String attrListType)565 public void setAttrListType(String attrListType) { 566 this.attrListType = attrListType; 567 } 568 569 /** 570 * @see #attrListTypeConversionItemValidation 571 */ setAttrListTypeConversionItemValidation(String attrListTypeConversionItemValidation)572 public void setAttrListTypeConversionItemValidation(String attrListTypeConversionItemValidation) { 573 this.attrListTypeConversionItemValidation = attrListTypeConversionItemValidation; 574 } 575 576 /** 577 * @see #attrListTypeConversionNoItemValidation 578 */ setAttrListTypeConversionNoItemValidation(String attrListTypeConversionNoItemValidation)579 public void setAttrListTypeConversionNoItemValidation(String attrListTypeConversionNoItemValidation) { 580 this.attrListTypeConversionNoItemValidation = attrListTypeConversionNoItemValidation; 581 } 582 583 /** 584 * @see #attrListTypePostConversion 585 */ setAttrListTypePostConversion(String attrListTypePostConversion)586 public void setAttrListTypePostConversion(String attrListTypePostConversion) { 587 this.attrListTypePostConversion = attrListTypePostConversion; 588 } 589 590 /** 591 * @see #attrListTypePreConversion 592 */ setAttrListTypePreConversion(String attrListTypePreConversion)593 public void setAttrListTypePreConversion(String attrListTypePreConversion) { 594 this.attrListTypePreConversion = attrListTypePreConversion; 595 } 596 597 /** 598 * @see #dataAtomicDataMethodImpl 599 */ setDataAtomicDataMethodImpl(String dataAtomicDataMethodImpl)600 public void setDataAtomicDataMethodImpl(String dataAtomicDataMethodImpl) { 601 this.dataAtomicDataMethodImpl = dataAtomicDataMethodImpl; 602 } 603 604 /** 605 * @see #dataAtomicDataMethodImplFacetPattern 606 */ setDataAtomicDataMethodImplFacetPattern(String dataAtomicDataMethodImplFacetPattern)607 public void setDataAtomicDataMethodImplFacetPattern(String dataAtomicDataMethodImplFacetPattern) { 608 this.dataAtomicDataMethodImplFacetPattern = dataAtomicDataMethodImplFacetPattern; 609 } 610 611 /** 612 * @see #dataAtomicType 613 */ setDataAtomicType(String dataAtomicType)614 public void setDataAtomicType(String dataAtomicType) { 615 this.dataAtomicType = dataAtomicType; 616 } 617 618 /** 619 * @see #dataAtomicTypeConversion 620 */ setDataAtomicTypeConversion(String dataAtomicTypeConversion)621 public void setDataAtomicTypeConversion(String dataAtomicTypeConversion) { 622 this.dataAtomicTypeConversion = dataAtomicTypeConversion; 623 } 624 625 /** 626 * @see #dataAtomicTypePostConversion 627 */ setDataAtomicTypePostConversion(String dataAtomicTypePostConversion)628 public void setDataAtomicTypePostConversion(String dataAtomicTypePostConversion) { 629 this.dataAtomicTypePostConversion = dataAtomicTypePostConversion; 630 } 631 632 /** 633 * @see #dataAtomicTypePreConversion 634 */ setDataAtomicTypePreConversion(String dataAtomicTypePreConversion)635 public void setDataAtomicTypePreConversion(String dataAtomicTypePreConversion) { 636 this.dataAtomicTypePreConversion = dataAtomicTypePreConversion; 637 } 638 639 /** 640 * @see #dataAtomicValidateEndImpl 641 */ setDataAtomicValidateEndImpl(String dataAtomicValidateEndImpl)642 public void setDataAtomicValidateEndImpl(String dataAtomicValidateEndImpl) { 643 this.dataAtomicValidateEndImpl = dataAtomicValidateEndImpl; 644 } 645 646 /** 647 * @see #dataAtomicValidateEndImplFacetPattern 648 */ setDataAtomicValidateEndImplFacetPattern(String dataAtomicValidateEndImplFacetPattern)649 public void setDataAtomicValidateEndImplFacetPattern(String dataAtomicValidateEndImplFacetPattern) { 650 this.dataAtomicValidateEndImplFacetPattern = dataAtomicValidateEndImplFacetPattern; 651 } 652 653 /** 654 * @see #dataListEnd 655 */ setDataListEnd(String dataListEnd)656 public void setDataListEnd(String dataListEnd) { 657 this.dataListEnd = dataListEnd; 658 } 659 660 /** 661 * @see #dataListEndValidation 662 */ setDataListEndValidation(String dataListEndValidation)663 public void setDataListEndValidation(String dataListEndValidation) { 664 this.dataListEndValidation = dataListEndValidation; 665 } 666 667 /** 668 * @see #dataListType 669 */ setDataListType(String dataListType)670 public void setDataListType(String dataListType) { 671 this.dataListType = dataListType; 672 } 673 674 /** 675 * @see #dataListTypeConversion 676 */ setDataListTypeConversion(String dataListTypeConversion)677 public void setDataListTypeConversion(String dataListTypeConversion) { 678 this.dataListTypeConversion = dataListTypeConversion; 679 } 680 681 /** 682 * @see #dataListTypeConversionValidation 683 */ setDataListTypeConversionValidation(String dataListTypeConversionValidation)684 public void setDataListTypeConversionValidation(String dataListTypeConversionValidation) { 685 this.dataListTypeConversionValidation = dataListTypeConversionValidation; 686 } 687 688 /** 689 * @see #enumAttrAtomicTypeConversion 690 */ setEnumAttrAtomicTypeConversion(String enumAttrAtomicTypeConversion)691 public void setEnumAttrAtomicTypeConversion(String enumAttrAtomicTypeConversion) { 692 this.enumAttrAtomicTypeConversion = enumAttrAtomicTypeConversion; 693 } 694 695 /** 696 * @see #enumAttrAtomicTypePostConversion 697 */ setEnumAttrAtomicTypePostConversion(String enumAttrAtomicTypePostConversion)698 public void setEnumAttrAtomicTypePostConversion(String enumAttrAtomicTypePostConversion) { 699 this.enumAttrAtomicTypePostConversion = enumAttrAtomicTypePostConversion; 700 } 701 702 /** 703 * @see #enumAttrAtomicTypePreConversion 704 */ setEnumAttrAtomicTypePreConversion(String enumAttrAtomicTypePreConversion)705 public void setEnumAttrAtomicTypePreConversion(String enumAttrAtomicTypePreConversion) { 706 this.enumAttrAtomicTypePreConversion = enumAttrAtomicTypePreConversion; 707 } 708 709 /** 710 * @see #enumDataAtomicTypeConversion 711 */ setEnumDataAtomicTypeConversion(String enumDataAtomicTypeConversion)712 public void setEnumDataAtomicTypeConversion(String enumDataAtomicTypeConversion) { 713 this.enumDataAtomicTypeConversion = enumDataAtomicTypeConversion; 714 } 715 716 /** 717 * @see #enumDataListEnd 718 */ setEnumDataListEnd(String enumDataListEnd)719 public void setEnumDataListEnd(String enumDataListEnd) { 720 this.enumDataListEnd = enumDataListEnd; 721 } 722 723 /** 724 * @see #enumDataListTypeConversion 725 */ setEnumDataListTypeConversion(String enumDataListTypeConversion)726 public void setEnumDataListTypeConversion(String enumDataListTypeConversion) { 727 this.enumDataListTypeConversion = enumDataListTypeConversion; 728 } 729 730 /** 731 * @see #initialize 732 */ setInitialize(String initialize)733 public void setInitialize(String initialize) { 734 this.initialize = initialize; 735 } 736 737 /** 738 * @see #initializePreAtomic 739 */ setInitializePreAtomic(String initializePreAtomic)740 public void setInitializePreAtomic(String initializePreAtomic) { 741 this.initializePreAtomic = initializePreAtomic; 742 } 743 744 /** 745 * @see #initializePreList 746 */ setInitializePreList(String initializePreList)747 public void setInitializePreList(String initializePreList) { 748 this.initializePreList = initializePreList; 749 } 750 751 /** 752 * @see #toString 753 */ setToString(String toString)754 public void setToString(String toString) { 755 this.toString = toString; 756 } 757 758 /** 759 * @see #unionAtomicType 760 */ setUnionAtomicType(String unionAtomicType)761 public void setUnionAtomicType(String unionAtomicType) { 762 this.unionAtomicType = unionAtomicType; 763 } 764 765 /** 766 * @see #unionAtomicTypeConversion 767 */ setUnionAtomicTypeConversion(String unionAtomicTypeConversion)768 public void setUnionAtomicTypeConversion(String unionAtomicTypeConversion) { 769 this.unionAtomicTypeConversion = unionAtomicTypeConversion; 770 } 771 772 /** 773 * @see #unionEnumBaseType 774 */ setUnionEnumBaseType(String unionEnumBaseType)775 public void setUnionEnumBaseType(String unionEnumBaseType) { 776 this.unionEnumBaseType = unionEnumBaseType; 777 } 778 779 /** 780 * @see #unionEnumBaseTypeConversion 781 */ setUnionEnumBaseTypeConversion(String unionEnumBaseTypeConversion)782 public void setUnionEnumBaseTypeConversion(String unionEnumBaseTypeConversion) { 783 this.unionEnumBaseTypeConversion = unionEnumBaseTypeConversion; 784 } 785 786 /** 787 * @see #xsdType 788 */ setXsdType(String xsdType)789 public void setXsdType(String xsdType) { 790 this.xsdType = xsdType; 791 } 792 } 793