RenderOptionsSpec.java 42.9 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.livecycle.SinceLC
 */
package com.adobe.livecycle.formsservice.client;

import com.adobe.livecycle.SinceLC;
import com.adobe.livecycle.formsservice.client.OutputType;
import com.adobe.livecycle.formsservice.exception.FormServerException;
import com.adobe.livecycle.formsservice.utils.FormsServiceClientUtils;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Set;
import java.util.StringTokenizer;

public class RenderOptionsSpec
implements Serializable,
Cloneable {
    private static final long serialVersionUID = 1512382299033716149L;
    protected OutputType outputType = null;
    protected int pageNumber = 0;
    protected Integer validationUI = null;
    protected Integer validationReporting = null;
    protected Boolean cacheEnabled = null;
    protected boolean xMLData = false;
    protected boolean taggedPDF = true;
    protected boolean linearizedPDF = false;
    protected boolean pDF2XDP = false;
    protected boolean clientCache = false;
    protected boolean standAlone = false;
    protected boolean debugEnabled = false;
    protected String charset = null;
    protected String locale = null;
    protected String validationBorder = null;
    protected String acrobatVersion = null;
    protected String pDFVersion = null;
    protected String seedPDF = null;
    protected String renderAtClient = null;
    protected String clientFrame = null;
    protected String imageURL = null;
    protected String exportDataFormat = "XDP";
    protected String formModel = "auto";
    protected String xDCURI = null;
    protected String xCIURI = null;
    protected String fontMapURI = null;
    protected String xCI = null;
    protected String serviceId = null;
    protected String rootLocale = null;
    protected String digSigCSSURI = null;
    protected String toolbarMenu = "";
    protected HashMap internalOptionMap = null;
    protected String ifModifiedSince = null;
    protected String guideName = null;
    protected boolean guideRSL = false;
    protected boolean guidePDF = true;
    protected boolean guideAccessible = false;
    protected String guideCBURL = null;
    protected boolean cB = false;
    protected String guideStyle = null;
    protected boolean guideSubmitAll = false;
    protected boolean injectFormBridge = false;
    protected boolean reFillIn = false;
    protected boolean reExpImp = false;
    protected boolean reStandaloneSubmit = false;
    protected boolean reOnlineForms = false;
    protected boolean reFormFieldMod = false;
    protected boolean reCreatePages = false;
    protected boolean re2DBarcode = false;
    protected boolean reDigSig = false;
    protected boolean reCommenting = false;
    protected boolean reOnlineCommenting = false;
    protected boolean reEmbeddedAttachments = false;
    protected String reCredentialAlias = null;
    protected String reCredentialPassword = null;
    protected String reReaderMessage = null;
    @SinceLC(value="10.0.0.0")
    protected boolean enableViewerPreferences = false;
    protected int auditLog = 0;
    protected static HashMap propertyMap = new HashMap(57);

    public RenderOptionsSpec() {
    }

    public RenderOptionsSpec(String sOptions) throws FormServerException {
        this.updateOptionsBean(sOptions);
    }

    public RenderOptionsSpec(OutputType outputType, String charset, String locale, int pageNumber, Boolean cacheEnabled, Integer validationUI, Integer validationReporting, String validationBorder, String acrobatVersion, String pDFVersion, boolean xMLData, boolean taggedPDF, boolean linearizedPDF, boolean pDF2XDP, String seedPDF, String renderAtClient, String clientFrame, String imageURL, boolean clientCache, String exportDataFormat, boolean standAlone, String formModel, String xDCURI, String xCIURI, String fontMapURI, String xCI, String serviceId, String rootLocale, String digSigCSSURI, String toolbarMenu, boolean debugEnabled, String ifModifiedSince, String guideName, boolean guideRSL, boolean guidePDF, boolean guideAccessible, String guideCBURL, boolean cB, String guideStyle, boolean guideSubmitAll, boolean injectFormBridge, String reCredentialAlias, String reCredentialPassword, String reReaderMessage, boolean re2DBarcode, boolean reCommenting, boolean reCreatePages, boolean reDigSig, boolean reEmbeddedAttachments, boolean reExpImp, boolean reFillIn, boolean reFormFieldMod, boolean reOnlineCommenting, boolean reOnlineForms, boolean reStandaloneSubmit) {
        this.outputType = outputType;
        this.charset = charset;
        this.locale = locale;
        this.pageNumber = pageNumber;
        this.cacheEnabled = cacheEnabled;
        this.validationUI = validationUI;
        this.validationReporting = validationReporting;
        this.validationBorder = validationBorder;
        this.acrobatVersion = acrobatVersion;
        this.pDFVersion = pDFVersion;
        this.xMLData = xMLData;
        this.taggedPDF = taggedPDF;
        this.linearizedPDF = linearizedPDF;
        this.pDF2XDP = pDF2XDP;
        this.seedPDF = seedPDF;
        this.renderAtClient = renderAtClient;
        this.clientFrame = clientFrame;
        this.imageURL = imageURL;
        this.clientCache = clientCache;
        this.exportDataFormat = exportDataFormat;
        this.standAlone = standAlone;
        this.formModel = formModel;
        this.xDCURI = xDCURI;
        this.xCIURI = xCIURI;
        this.fontMapURI = fontMapURI;
        this.xCI = xCI;
        this.serviceId = serviceId;
        this.rootLocale = rootLocale;
        this.digSigCSSURI = digSigCSSURI;
        this.toolbarMenu = toolbarMenu;
        this.debugEnabled = debugEnabled;
        this.ifModifiedSince = ifModifiedSince;
        this.guideName = guideName;
        this.guideRSL = guideRSL;
        this.guidePDF = guidePDF;
        this.guideAccessible = guideAccessible;
        this.guideCBURL = guideCBURL;
        this.cB = cB;
        this.guideStyle = guideStyle;
        this.guideSubmitAll = guideSubmitAll;
        this.injectFormBridge = injectFormBridge;
        this.reCredentialAlias = reCredentialAlias;
        this.reCredentialPassword = reCredentialPassword;
        this.reReaderMessage = reReaderMessage;
        this.re2DBarcode = re2DBarcode;
        this.reCommenting = reCommenting;
        this.reCreatePages = reCreatePages;
        this.reDigSig = reDigSig;
        this.reEmbeddedAttachments = reEmbeddedAttachments;
        this.reExpImp = reExpImp;
        this.reFillIn = reFillIn;
        this.reFormFieldMod = reFormFieldMod;
        this.reOnlineCommenting = reOnlineCommenting;
        this.reOnlineForms = reOnlineForms;
        this.reStandaloneSubmit = reStandaloneSubmit;
    }

    public String getAcrobatVersion() {
        return this.acrobatVersion;
    }

    public void setAcrobatVersion(String acrobatVersion) {
        this.acrobatVersion = acrobatVersion;
    }

    public Boolean isCacheEnabled() {
        return this.cacheEnabled;
    }

    public Boolean getCacheEnabled() {
        return this.cacheEnabled;
    }

    public void setCacheEnabled(Boolean cacheEnabled) {
        this.cacheEnabled = cacheEnabled;
    }

    public String getCharset() {
        return this.charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public boolean isClientCache() {
        return this.clientCache;
    }

    public void setClientCache(boolean clientCache) {
        this.clientCache = clientCache;
    }

    @SinceLC(value="10.0.0.0")
    public boolean isEnableViewerPreferences() {
        return this.enableViewerPreferences;
    }

    @SinceLC(value="10.0.0.0")
    public void setEnableViewerPreferences(boolean enableViewerPreferences) {
        this.enableViewerPreferences = enableViewerPreferences;
    }

    public String getClientFrame() {
        return this.clientFrame;
    }

    public void setClientFrame(String clientFrame) {
        this.clientFrame = clientFrame;
    }

    public boolean isDebugEnabled() {
        return this.debugEnabled;
    }

    public void setDebugEnabled(boolean debugEnabled) {
        this.debugEnabled = debugEnabled;
    }

    public String getExportDataFormat() {
        return this.exportDataFormat;
    }

    public void setExportDataFormat(String exportDataFormat) {
        this.exportDataFormat = exportDataFormat;
    }

    public String getFontMapURI() {
        return this.decodeURL(this.fontMapURI);
    }

    public void setFontMapURI(String fontMapURI) {
        this.fontMapURI = fontMapURI;
    }

    public String getFormModel() {
        return this.formModel;
    }

    public void setFormModel(String formModel) {
        this.formModel = formModel;
    }

    public String getImageURL() {
        return this.decodeURL(this.imageURL);
    }

    public void setImageURL(String imageURL) {
        this.imageURL = imageURL;
    }

    public boolean isLinearizedPDF() {
        return this.linearizedPDF;
    }

    public void setLinearizedPDF(boolean linearizedPDF) {
        this.linearizedPDF = linearizedPDF;
    }

    public String getLocale() {
        return this.locale;
    }

    public void setLocale(String locale) {
        this.locale = locale;
    }

    public OutputType getOutputType() {
        return this.outputType;
    }

    public void setOutputType(OutputType outputType) {
        this.outputType = outputType;
    }

    public int getPageNumber() {
        return this.pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public boolean isPDF2XDP() {
        return this.pDF2XDP;
    }

    public void setPDF2XDP(boolean pDF2XDP) {
        this.pDF2XDP = pDF2XDP;
    }

    public String getPDFVersion() {
        return this.pDFVersion;
    }

    public void setPDFVersion(String pDFVersion) {
        this.pDFVersion = pDFVersion;
    }

    public String getRenderAtClient() {
        return this.renderAtClient;
    }

    public void setRenderAtClient(String renderAtClient) {
        this.renderAtClient = renderAtClient;
    }

    public String getSeedPDF() {
        return this.seedPDF;
    }

    public void setSeedPDF(String seedPDF) {
        this.seedPDF = seedPDF;
    }

    public boolean isStandAlone() {
        return this.standAlone;
    }

    public void setStandAlone(boolean standAlone) {
        this.standAlone = standAlone;
    }

    public boolean isTaggedPDF() {
        return this.taggedPDF;
    }

    public void setTaggedPDF(boolean taggedPDF) {
        this.taggedPDF = taggedPDF;
    }

    public String getValidationBorder() {
        return this.validationBorder;
    }

    public void setValidationBorder(String validationBorder) {
        this.validationBorder = validationBorder;
    }

    public Integer getValidationReporting() {
        return this.validationReporting;
    }

    public void setValidationReporting(Integer validationReporting) {
        this.validationReporting = validationReporting;
    }

    public Integer getValidationUI() {
        return this.validationUI;
    }

    public void setValidationUI(Integer validationUI) {
        this.validationUI = validationUI;
    }

    public String getXCI() {
        return this.xCI;
    }

    public void setXCI(String xCI) {
        this.xCI = xCI;
    }

    public String getXCIURI() {
        return this.decodeURL(this.xCIURI);
    }

    public void setXCIURI(String xCIURI) {
        this.xCIURI = xCIURI;
    }

    public String getXDCURI() {
        return this.decodeURL(this.xDCURI);
    }

    public void setXDCURI(String xDCURI) {
        this.xDCURI = xDCURI;
    }

    public boolean isXMLData() {
        return this.xMLData;
    }

    public void setXMLData(boolean xMLData) {
        this.xMLData = xMLData;
    }

    public String getServiceId() {
        return this.serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getRootLocale() {
        return this.rootLocale;
    }

    public void setRootLocale(String rootLocale) {
        this.rootLocale = rootLocale;
    }

    public String getDigSigCSSURI() {
        return this.decodeURL(this.digSigCSSURI);
    }

    public void setDigSigCSSURI(String digSigCSSURI) {
        this.digSigCSSURI = digSigCSSURI;
    }

    public String getToolbarMenu() {
        return this.toolbarMenu;
    }

    public void setToolbarMenu(String toolbarMenu) {
        this.toolbarMenu = toolbarMenu;
    }

    public String getIfModifiedSince() {
        return this.ifModifiedSince;
    }

    public void setIfModifiedSince(String ifModifiedSince) {
        this.ifModifiedSince = ifModifiedSince;
    }

    public String getGuideName() {
        return this.guideName;
    }

    public void setGuideName(String guideName) {
        this.guideName = guideName;
    }

    public boolean isGuideRSL() {
        return this.guideRSL;
    }

    public void setGuideRSL(boolean guideRSL) {
        this.guideRSL = guideRSL;
    }

    public boolean isGuidePDF() {
        return this.guidePDF;
    }

    public void setGuidePDF(boolean guidePDF) {
        this.guidePDF = guidePDF;
    }

    public boolean isGuideAccessible() {
        return this.guideAccessible;
    }

    public void setGuideAccessible(boolean guideAccessible) {
        this.guideAccessible = guideAccessible;
    }

    public String getGuideCBURL() {
        return this.guideCBURL;
    }

    public void setGuideCBURL(String guideCBURL) {
        this.guideCBURL = guideCBURL;
    }

    public boolean isCB() {
        return this.cB;
    }

    public void setCB(boolean cB) {
        this.cB = cB;
    }

    public String getGuideStyle() {
        return this.guideStyle;
    }

    public void setGuideStyle(String guideStyle) {
        this.guideStyle = guideStyle;
    }

    public boolean isGuideSubmitAll() {
        return this.guideSubmitAll;
    }

    public void setGuideSubmitAll(boolean guideSubmitAll) {
        this.guideSubmitAll = guideSubmitAll;
    }

    public boolean getInjectFormBridge() {
        return this.injectFormBridge;
    }

    public void setInjectFormBridge(boolean injectFormBridge) {
        this.injectFormBridge = injectFormBridge;
    }

    public HashMap getPropertyMap() {
        return propertyMap;
    }

    public HashMap getInternalOptionMap() {
        return this.internalOptionMap;
    }

    public boolean isRe2DBarcode() {
        return this.re2DBarcode;
    }

    public void setRe2DBarcode(boolean re2DBarcode) {
        this.re2DBarcode = re2DBarcode;
    }

    public boolean isReCommenting() {
        return this.reCommenting;
    }

    public void setReCommenting(boolean reCommenting) {
        this.reCommenting = reCommenting;
    }

    public boolean isReCreatePages() {
        return this.reCreatePages;
    }

    public void setReCreatePages(boolean reCreatePages) {
        this.reCreatePages = reCreatePages;
    }

    public String getReCredentialAlias() {
        return this.reCredentialAlias;
    }

    public void setReCredentialAlias(String reCredentialAlias) {
        this.reCredentialAlias = reCredentialAlias;
    }

    public String getReCredentialPassword() {
        return this.reCredentialPassword;
    }

    public void setReCredentialPassword(String reCredentialPassword) {
        this.reCredentialPassword = reCredentialPassword;
    }

    public boolean isReDigSig() {
        return this.reDigSig;
    }

    public void setReDigSig(boolean reDigSig) {
        this.reDigSig = reDigSig;
    }

    public boolean isReEmbeddedAttachments() {
        return this.reEmbeddedAttachments;
    }

    public void setReEmbeddedAttachments(boolean reEmbeddedAttachments) {
        this.reEmbeddedAttachments = reEmbeddedAttachments;
    }

    public boolean isReExpImp() {
        return this.reExpImp;
    }

    public void setReExpImp(boolean reExpImp) {
        this.reExpImp = reExpImp;
    }

    public boolean isReFillIn() {
        return this.reFillIn;
    }

    public void setReFillIn(boolean reFillIn) {
        this.reFillIn = reFillIn;
    }

    public boolean isReFormFieldMod() {
        return this.reFormFieldMod;
    }

    public void setReFormFieldMod(boolean reFormFieldMod) {
        this.reFormFieldMod = reFormFieldMod;
    }

    public boolean isReOnlineCommenting() {
        return this.reOnlineCommenting;
    }

    public void setReOnlineCommenting(boolean reOnlineCommenting) {
        this.reOnlineCommenting = reOnlineCommenting;
    }

    public boolean isReOnlineForms() {
        return this.reOnlineForms;
    }

    public void setReOnlineForms(boolean reOnlineForms) {
        this.reOnlineForms = reOnlineForms;
    }

    public String getReReaderMessage() {
        return this.reReaderMessage;
    }

    public void setReReaderMessage(String reReaderMessage) {
        this.reReaderMessage = reReaderMessage;
    }

    public boolean isReStandaloneSubmit() {
        return this.reStandaloneSubmit;
    }

    public void setReStandaloneSubmit(boolean reStandaloneSubmit) {
        this.reStandaloneSubmit = reStandaloneSubmit;
    }

    public String getOptions() {
        String val;
        StringBuffer optStr = new StringBuffer();
        for (String key2 : propertyMap.keySet()) {
            val = this.getOptionsBean(key2);
            if (val == null || val.trim().length() <= 0) continue;
            optStr.append(key2).append("=").append(val).append("&");
        }
        if (this.internalOptionMap != null) {
            for (String key2 : this.internalOptionMap.keySet()) {
                val = (String)this.internalOptionMap.get(key2);
                if (val == null || val.trim().length() <= 0) continue;
                optStr.append(key2).append("=").append(val).append("&");
            }
        }
        return optStr.substring(0, optStr.length() - 1);
    }

    public String getOptionsBean(String key) {
        String paramVal = "";
        int propId = this.lookupProperty(key);
        switch (propId) {
            case 1: {
                if (this.getOutputType() == null) break;
                paramVal = Integer.toString(this.getOutputType().getValue());
                break;
            }
            case 2: {
                paramVal = this.getCharset();
                break;
            }
            case 3: {
                paramVal = this.getLocale();
                break;
            }
            case 4: {
                paramVal = Integer.toString(this.getPageNumber());
                break;
            }
            case 5: {
                if (this.isCacheEnabled() == null) break;
                paramVal = Boolean.toString(this.isCacheEnabled());
                break;
            }
            case 6: {
                if (this.getValidationUI() == null) break;
                paramVal = Integer.toString(this.getValidationUI());
                break;
            }
            case 7: {
                if (this.getValidationReporting() == null) break;
                paramVal = Integer.toString(this.getValidationReporting());
                break;
            }
            case 8: {
                paramVal = this.getValidationBorder();
                break;
            }
            case 9: {
                paramVal = this.getAcrobatVersion();
                break;
            }
            case 10: {
                paramVal = this.getPDFVersion();
                break;
            }
            case 11: {
                paramVal = Boolean.toString(this.isXMLData());
                break;
            }
            case 12: {
                paramVal = Boolean.toString(this.isTaggedPDF());
                break;
            }
            case 13: {
                paramVal = Boolean.toString(this.isLinearizedPDF());
                break;
            }
            case 14: {
                paramVal = Boolean.toString(this.isPDF2XDP());
                break;
            }
            case 15: {
                paramVal = this.getSeedPDF();
                break;
            }
            case 16: {
                paramVal = this.getRenderAtClient();
                break;
            }
            case 17: {
                paramVal = this.getClientFrame();
                break;
            }
            case 18: {
                paramVal = this.getImageURL();
                break;
            }
            case 19: {
                paramVal = Boolean.toString(this.isClientCache());
                break;
            }
            case 20: {
                paramVal = this.getExportDataFormat();
                break;
            }
            case 21: {
                paramVal = Boolean.toString(this.isStandAlone());
                break;
            }
            case 22: {
                paramVal = this.getFormModel();
                break;
            }
            case 23: {
                paramVal = this.getXDCURI();
                break;
            }
            case 24: {
                paramVal = this.getXCIURI();
                break;
            }
            case 25: {
                paramVal = this.getFontMapURI();
                break;
            }
            case 26: {
                paramVal = this.getXCI();
                break;
            }
            case 27: {
                paramVal = Boolean.toString(this.isDebugEnabled());
                break;
            }
            case 28: {
                paramVal = this.getServiceId();
                break;
            }
            case 29: {
                paramVal = this.getRootLocale();
                break;
            }
            case 30: {
                paramVal = this.getDigSigCSSURI();
                break;
            }
            case 57: {
                paramVal = this.getToolbarMenu();
                break;
            }
            case 31: {
                paramVal = this.getIfModifiedSince();
                break;
            }
            case 32: {
                paramVal = this.getGuideName();
                break;
            }
            case 33: {
                paramVal = Boolean.toString(this.isGuideRSL());
                break;
            }
            case 35: {
                paramVal = Boolean.toString(this.isGuidePDF());
                break;
            }
            case 36: {
                paramVal = Boolean.toString(this.isGuideAccessible());
                break;
            }
            case 37: {
                paramVal = this.getGuideCBURL();
                break;
            }
            case 38: {
                paramVal = Boolean.toString(this.isCB());
                break;
            }
            case 39: {
                paramVal = this.getGuideStyle();
                break;
            }
            case 40: {
                paramVal = Boolean.toString(this.isGuideSubmitAll());
                break;
            }
            case 42: {
                paramVal = Boolean.toString(this.getInjectFormBridge());
                break;
            }
            case 43: {
                paramVal = this.getReCredentialAlias();
                break;
            }
            case 44: {
                paramVal = this.getReCredentialPassword();
                break;
            }
            case 45: {
                paramVal = this.getReReaderMessage();
                break;
            }
            case 52: {
                paramVal = Boolean.toString(this.isRe2DBarcode());
                break;
            }
            case 46: {
                paramVal = Boolean.toString(this.isReFillIn());
                break;
            }
            case 54: {
                paramVal = Boolean.toString(this.isReCommenting());
                break;
            }
            case 51: {
                paramVal = Boolean.toString(this.isReCreatePages());
                break;
            }
            case 53: {
                paramVal = Boolean.toString(this.isReDigSig());
                break;
            }
            case 56: {
                paramVal = Boolean.toString(this.isReEmbeddedAttachments());
                break;
            }
            case 47: {
                paramVal = Boolean.toString(this.isReExpImp());
                break;
            }
            case 50: {
                paramVal = Boolean.toString(this.isReFormFieldMod());
                break;
            }
            case 55: {
                paramVal = Boolean.toString(this.isReOnlineCommenting());
                break;
            }
            case 49: {
                paramVal = Boolean.toString(this.isReOnlineForms());
                break;
            }
            case 48: {
                paramVal = Boolean.toString(this.isReStandaloneSubmit());
                break;
            }
            case 58: {
                paramVal = Boolean.toString(this.isEnableViewerPreferences());
                break;
            }
            case 59: {
                paramVal = Integer.toString(this.getAuditLog());
                break;
            }
            default: {
                return this.getInternalOption(key);
            }
        }
        return this.decodeURL(paramVal);
    }

    public void updateOptionsBean(String key, String value) throws FormServerException {
        if (value != null && value.trim().length() == 0) {
            value = null;
        }
        int propId = this.lookupProperty(key);
        if (value != null && propId == 1 || propId == 4 || value != null && propId == 6 || value != null && propId == 7) {
            try {
                Integer.parseInt(value);
            }
            catch (NumberFormatException nfe) {
                throw new FormServerException("ALC-FRM-001-012", new String[]{key, value}, 3, true);
            }
        } else if ((value != null && propId == 5 || propId == 11 || propId == 12 || propId == 13 || propId == 14 || propId == 19 || propId == 21 || propId == 27 || propId == 33 || propId == 35 || propId == 36 || propId == 38 || propId == 40 || propId == 42 || propId == 52 || propId == 46 || propId == 54 || propId == 51 || propId == 53 || propId == 56 || propId == 47 || propId == 50 || propId == 55 || propId == 49 || propId == 48 || propId == 58) && !"true".equalsIgnoreCase(value) && !"false".equalsIgnoreCase(value)) {
            if (!"0".equalsIgnoreCase(value) && !"1".equalsIgnoreCase(value)) {
                throw new FormServerException("ALC-FRM-001-012", new String[]{key, value}, 3, true);
            }
            value = "1".equalsIgnoreCase(value) ? "true" : "false";
        }
        switch (propId) {
            case 1: {
                if (value == null) {
                    this.setOutputType(null);
                    break;
                }
                this.setOutputType(FormsServiceClientUtils.convertIntToOutputType(Integer.parseInt(value)));
                break;
            }
            case 2: {
                this.setCharset(value);
                break;
            }
            case 3: {
                if (value == null || "AUTO".equalsIgnoreCase(value)) {
                    this.setLocale(null);
                    break;
                }
                this.setLocale(value);
                break;
            }
            case 4: {
                this.setPageNumber(Integer.parseInt(value));
                break;
            }
            case 5: {
                if (value == null) {
                    this.setCacheEnabled(null);
                    break;
                }
                this.setCacheEnabled((boolean)Boolean.valueOf(value));
                break;
            }
            case 6: {
                if (value == null) {
                    this.setValidationUI(null);
                    break;
                }
                this.setValidationUI(Integer.parseInt(value));
                break;
            }
            case 7: {
                if (value == null) {
                    this.setValidationReporting(null);
                    break;
                }
                this.setValidationReporting(Integer.parseInt(value));
                break;
            }
            case 8: {
                this.setValidationBorder(value);
                break;
            }
            case 9: {
                this.setAcrobatVersion(value);
                break;
            }
            case 10: {
                this.setPDFVersion(value);
                break;
            }
            case 11: {
                this.setXMLData(Boolean.valueOf(value));
                break;
            }
            case 12: {
                this.setTaggedPDF(Boolean.valueOf(value));
                break;
            }
            case 13: {
                this.setLinearizedPDF(Boolean.valueOf(value));
                break;
            }
            case 58: {
                this.setEnableViewerPreferences(Boolean.valueOf(value));
                break;
            }
            case 14: {
                this.setPDF2XDP(Boolean.valueOf(value));
                break;
            }
            case 15: {
                this.setSeedPDF(value);
                break;
            }
            case 16: {
                this.setRenderAtClient(value);
                break;
            }
            case 17: {
                this.setClientFrame(value);
                break;
            }
            case 18: {
                this.setImageURL(value);
                break;
            }
            case 19: {
                this.setClientCache(Boolean.valueOf(value));
                break;
            }
            case 20: {
                this.setExportDataFormat(value);
                break;
            }
            case 21: {
                this.setStandAlone(Boolean.valueOf(value));
                break;
            }
            case 22: {
                this.setFormModel(value);
                break;
            }
            case 23: {
                this.setXDCURI(value);
                break;
            }
            case 24: {
                this.setXCIURI(value);
                break;
            }
            case 25: {
                this.setFontMapURI(value);
                break;
            }
            case 26: {
                this.setXCI(value);
                break;
            }
            case 27: {
                this.setDebugEnabled(Boolean.valueOf(value));
                break;
            }
            case 28: {
                this.setServiceId(value);
                break;
            }
            case 29: {
                this.setRootLocale(value);
                break;
            }
            case 30: {
                this.setDigSigCSSURI(value);
                break;
            }
            case 57: {
                this.setToolbarMenu(value);
                break;
            }
            case 31: {
                this.setIfModifiedSince(value);
                break;
            }
            case 32: {
                this.setGuideName(value);
                break;
            }
            case 33: {
                this.setGuideRSL(Boolean.valueOf(value));
                break;
            }
            case 35: {
                this.setGuidePDF(Boolean.valueOf(value));
                break;
            }
            case 36: {
                this.setGuideAccessible(Boolean.valueOf(value));
                break;
            }
            case 37: {
                this.setGuideCBURL(value);
                break;
            }
            case 38: {
                this.setCB(Boolean.valueOf(value));
                break;
            }
            case 39: {
                this.setGuideStyle(value);
                break;
            }
            case 40: {
                this.setGuideSubmitAll(Boolean.valueOf(value));
                break;
            }
            case 42: {
                this.setInjectFormBridge(Boolean.valueOf(value));
                break;
            }
            case 43: {
                this.setReCredentialAlias(value);
                break;
            }
            case 44: {
                this.setReCredentialPassword(value);
                break;
            }
            case 45: {
                this.setReReaderMessage(value);
                break;
            }
            case 52: {
                this.setRe2DBarcode(Boolean.valueOf(value));
                break;
            }
            case 46: {
                this.setReFillIn(Boolean.valueOf(value));
                break;
            }
            case 54: {
                this.setReCommenting(Boolean.valueOf(value));
                break;
            }
            case 51: {
                this.setReCreatePages(Boolean.valueOf(value));
                break;
            }
            case 53: {
                this.setReDigSig(Boolean.valueOf(value));
                break;
            }
            case 56: {
                this.setReEmbeddedAttachments(Boolean.valueOf(value));
                break;
            }
            case 47: {
                this.setReExpImp(Boolean.valueOf(value));
                break;
            }
            case 50: {
                this.setReFormFieldMod(Boolean.valueOf(value));
                break;
            }
            case 55: {
                this.setReOnlineCommenting(Boolean.valueOf(value));
                break;
            }
            case 49: {
                this.setReOnlineForms(Boolean.valueOf(value));
                break;
            }
            case 48: {
                this.setReStandaloneSubmit(Boolean.valueOf(value));
                break;
            }
            case 59: {
                if (value != null && value.length() > 0) {
                    this.setAuditLog(Integer.parseInt(value));
                    break;
                }
                this.setAuditLog(0);
                break;
            }
            default: {
                this.setInternalOption(key, value);
            }
        }
    }

    public void updateOptionsBean(String options) throws FormServerException {
        if (FormsServiceClientUtils.isEmptyOrNull(options) || options.indexOf("=") == -1) {
            return;
        }
        StringTokenizer inToks = new StringTokenizer(options, "&");
        while (inToks.hasMoreTokens()) {
            String tok = inToks.nextToken();
            int tokEqual = tok.indexOf("=");
            if (tokEqual < 0) continue;
            this.updateOptionsBean(tok.substring(0, tokEqual), tok.substring(tokEqual + 1));
        }
    }

    private boolean validateProps() {
        boolean valid = false;
        return valid;
    }

    public String toString() {
        return this.getOptions();
    }

    private int lookupProperty(String key) {
        int propId = 0;
        if (!FormsServiceClientUtils.isEmptyOrNull(key) && propertyMap.containsKey(key = key.toLowerCase())) {
            propId = (Integer)propertyMap.get(key);
        }
        return propId;
    }

    private String decodeURL(String sURLEncoded) {
        if (sURLEncoded != null && sURLEncoded.indexOf(37) != -1) {
            byte[] cDecoded = FormsServiceClientUtils.URLDecode(sURLEncoded);
            sURLEncoded = new String(cDecoded);
        }
        return sURLEncoded;
    }

    public String getInternalOption(String key) {
        String retVal = null;
        if (this.internalOptionMap != null && key != null) {
            retVal = (String)this.internalOptionMap.get(key.toLowerCase());
        }
        return this.decodeURL(retVal);
    }

    public void setInternalOption(String key, String val) {
        if (this.internalOptionMap == null) {
            this.internalOptionMap = new HashMap();
        }
        if (key != null) {
            this.internalOptionMap.put(key.toLowerCase(), val);
        }
    }

    @SinceLC(value="11.0.1")
    public int getAuditLog() {
        return this.auditLog;
    }

    public void setAuditLog(int auditLog) {
        this.auditLog = auditLog;
    }

    public Object clone() {
        RenderOptionsSpec oSpec = null;
        try {
            oSpec = (RenderOptionsSpec)super.clone();
            oSpec.outputType = null;
            if (this.outputType != null) {
                for (OutputType tempOutputType : OutputType.values()) {
                    if (tempOutputType.getValue() != this.outputType.getValue()) continue;
                    oSpec.outputType = tempOutputType;
                }
            }
            oSpec.validationUI = this.validationUI == null ? null : new Integer(this.validationUI);
            oSpec.validationReporting = this.validationReporting == null ? null : new Integer(this.validationReporting);
            oSpec.cacheEnabled = this.cacheEnabled == null ? null : new Boolean(this.cacheEnabled);
            oSpec.acrobatVersion = this.acrobatVersion == null ? null : new String(this.acrobatVersion);
            oSpec.charset = this.charset == null ? null : new String(this.charset);
            oSpec.clientFrame = this.clientFrame == null ? null : new String(this.clientFrame);
            oSpec.digSigCSSURI = this.digSigCSSURI == null ? null : new String(this.digSigCSSURI);
            oSpec.exportDataFormat = this.exportDataFormat == null ? null : new String(this.exportDataFormat);
            oSpec.fontMapURI = this.fontMapURI == null ? null : new String(this.fontMapURI);
            oSpec.formModel = this.formModel == null ? null : new String(this.formModel);
            oSpec.guideName = this.guideName == null ? null : new String(this.guideName);
            oSpec.guideCBURL = this.guideCBURL == null ? null : new String(this.guideCBURL);
            oSpec.guideStyle = this.guideStyle == null ? null : new String(this.guideStyle);
            oSpec.ifModifiedSince = this.ifModifiedSince == null ? null : new String(this.ifModifiedSince);
            oSpec.imageURL = this.imageURL == null ? null : new String(this.imageURL);
            oSpec.internalOptionMap = this.internalOptionMap == null ? null : (HashMap)this.internalOptionMap.clone();
            oSpec.locale = this.locale == null ? null : new String(this.locale);
            oSpec.pDFVersion = this.pDFVersion == null ? null : new String(this.pDFVersion);
            oSpec.renderAtClient = this.renderAtClient == null ? null : new String(this.renderAtClient);
            oSpec.rootLocale = this.rootLocale == null ? null : new String(this.rootLocale);
            oSpec.seedPDF = this.seedPDF == null ? null : new String(this.seedPDF);
            oSpec.serviceId = this.serviceId == null ? null : new String(this.serviceId);
            oSpec.validationBorder = this.validationBorder == null ? null : new String(this.validationBorder);
            oSpec.xCI = this.xCI == null ? null : new String(this.xCI);
            oSpec.xCIURI = this.xCIURI == null ? null : new String(this.xCIURI);
            oSpec.xDCURI = this.xDCURI == null ? null : new String(this.xDCURI);
            oSpec.reCredentialAlias = this.reCredentialAlias == null ? null : new String(this.reCredentialAlias);
            oSpec.reCredentialPassword = this.reCredentialPassword == null ? null : new String(this.reCredentialPassword);
            oSpec.reReaderMessage = this.reReaderMessage == null ? null : new String(this.reReaderMessage);
            oSpec.toolbarMenu = this.toolbarMenu == null ? null : new String(this.toolbarMenu);
            oSpec.auditLog = this.auditLog;
        }
        catch (CloneNotSupportedException cnse) {
            // empty catch block
        }
        return oSpec;
    }

    static {
        propertyMap.put("outputtype".toLowerCase(), new Integer(1));
        propertyMap.put("charset".toLowerCase(), new Integer(2));
        propertyMap.put("locale".toLowerCase(), new Integer(3));
        propertyMap.put("pagenumber".toLowerCase(), new Integer(4));
        propertyMap.put("cacheenabled".toLowerCase(), new Integer(5));
        propertyMap.put("validationui".toLowerCase(), new Integer(6));
        propertyMap.put("validationreporting".toLowerCase(), new Integer(7));
        propertyMap.put("validationborder".toLowerCase(), new Integer(8));
        propertyMap.put("acrobatversion".toLowerCase(), new Integer(9));
        propertyMap.put("pdfversion".toLowerCase(), new Integer(10));
        propertyMap.put("xmldata".toLowerCase(), new Integer(11));
        propertyMap.put("taggedpdf".toLowerCase(), new Integer(12));
        propertyMap.put("linearpdf".toLowerCase(), new Integer(13));
        propertyMap.put("pdftoxdp".toLowerCase(), new Integer(14));
        propertyMap.put("seedpdf".toLowerCase(), new Integer(15));
        propertyMap.put("renderatclient".toLowerCase(), new Integer(16));
        propertyMap.put("clientframe".toLowerCase(), new Integer(17));
        propertyMap.put("imageurl".toLowerCase(), new Integer(18));
        propertyMap.put("clientcache".toLowerCase(), new Integer(19));
        propertyMap.put("exportdataformat".toLowerCase(), new Integer(20));
        propertyMap.put("standalone".toLowerCase(), new Integer(21));
        propertyMap.put("formmodel".toLowerCase(), new Integer(22));
        propertyMap.put("xdcuri".toLowerCase(), new Integer(23));
        propertyMap.put("xciuri".toLowerCase(), new Integer(24));
        propertyMap.put("fontmapuri".toLowerCase(), new Integer(25));
        propertyMap.put("xci".toLowerCase(), new Integer(26));
        propertyMap.put("padebug".toLowerCase(), new Integer(27));
        propertyMap.put("serviceid".toLowerCase(), new Integer(28));
        propertyMap.put("rootlocale".toLowerCase(), new Integer(29));
        propertyMap.put("digsigcssuri".toLowerCase(), new Integer(30));
        propertyMap.put("menu".toLowerCase(), new Integer(57));
        propertyMap.put("IfModifiedSince".toLowerCase(), new Integer(31));
        propertyMap.put("guidename".toLowerCase(), new Integer(32));
        propertyMap.put("guidersl".toLowerCase(), new Integer(33));
        propertyMap.put("guidepdf".toLowerCase(), new Integer(35));
        propertyMap.put("guideaccessible".toLowerCase(), new Integer(36));
        propertyMap.put("guidecburl".toLowerCase(), new Integer(37));
        propertyMap.put("cb".toLowerCase(), new Integer(38));
        propertyMap.put("guidestyle".toLowerCase(), new Integer(39));
        propertyMap.put("guidesubmitall".toLowerCase(), new Integer(40));
        propertyMap.put("injectformbridge".toLowerCase(), new Integer(42));
        propertyMap.put("RE_CredAlias".toLowerCase(), new Integer(43));
        propertyMap.put("RE_CredPasswd".toLowerCase(), new Integer(44));
        propertyMap.put("RE_ReaderMessage".toLowerCase(), new Integer(45));
        propertyMap.put("RE_2DBarcode".toLowerCase(), new Integer(52));
        propertyMap.put("RE_FormFillIn".toLowerCase(), new Integer(46));
        propertyMap.put("RE_Commenting".toLowerCase(), new Integer(54));
        propertyMap.put("RE_CreatePages".toLowerCase(), new Integer(51));
        propertyMap.put("RE_DigSig".toLowerCase(), new Integer(53));
        propertyMap.put("RE_EmbeddedAttach".toLowerCase(), new Integer(56));
        propertyMap.put("RE_FormExpImp".toLowerCase(), new Integer(47));
        propertyMap.put("RE_FieldMod".toLowerCase(), new Integer(50));
        propertyMap.put("RE_OnlineCommenting".toLowerCase(), new Integer(55));
        propertyMap.put("RE_OnlineForms".toLowerCase(), new Integer(49));
        propertyMap.put("RE_SASubmit".toLowerCase(), new Integer(48));
        propertyMap.put("auditLog".toLowerCase(), new Integer(59));
        propertyMap.put("enableViewerPreferences".toLowerCase(), new Integer(58));
    }
}