HTMLRenderSpec.java 6.23 KB
/*
 * 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.FormModel;
import com.adobe.livecycle.formsservice.client.HTMLToolbar;
import com.adobe.livecycle.formsservice.client.OutputType;
import com.adobe.livecycle.formsservice.client.StyleGenerationLevel;
import com.adobe.livecycle.formsservice.utils.FormsServiceClientUtils;
import java.io.Serializable;

public class HTMLRenderSpec
implements Serializable {
    private static final long serialVersionUID = 3117649099031113243L;
    private OutputType outputType = null;
    private String charset = null;
    private int pageNumber = 0;
    private String locale = null;
    private Boolean cacheEnabled = null;
    private boolean xMLData = false;
    private boolean standAlone = false;
    private FormModel formModel = FormModel.auto;
    private String xCIURI = null;
    private String digSigCSSURI = null;
    private String customCSSURI = null;
    private HTMLToolbar htmlToolbar = HTMLToolbar.Disabled;
    private String toolbarURI = null;
    private String fontMapURI = null;
    private boolean debugEnabled = false;
    private Boolean generateTabIndex = true;
    private StyleGenerationLevel styleGenerationLevel = StyleGenerationLevel.InlineAndInternalStyles;
    @SinceLC(value="10.0.0.0")
    private boolean logPerformance = false;
    private int auditLog = 0;

    public HTMLRenderSpec() {
    }

    public HTMLRenderSpec(OutputType outputType, String charset, int pageNumber, String locale, Boolean cacheEnabled, boolean xMLData, boolean standAlone, FormModel formModel, String xCIURI, String digSigCSSURI, String customCSSURI, HTMLToolbar htmlToolbar, String toolbarURI, String fontMapURI) {
        this.outputType = outputType;
        this.charset = charset;
        this.pageNumber = pageNumber;
        this.locale = locale;
        this.cacheEnabled = cacheEnabled;
        this.xMLData = xMLData;
        this.standAlone = standAlone;
        this.formModel = formModel;
        this.xCIURI = xCIURI;
        this.digSigCSSURI = digSigCSSURI;
        this.customCSSURI = customCSSURI;
        this.htmlToolbar = htmlToolbar;
        this.toolbarURI = toolbarURI;
        this.fontMapURI = fontMapURI;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public HTMLToolbar getHTMLToolbar() {
        return this.htmlToolbar;
    }

    public void setHTMLToolbar(HTMLToolbar htmlToolbar) {
        this.htmlToolbar = htmlToolbar;
    }

    public String getToolbarURI() {
        return this.toolbarURI;
    }

    public void setToolbarURI(String toolbarURI) {
        this.toolbarURI = toolbarURI;
    }

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

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

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

    @SinceLC(value="8.2.1")
    public String getCustomCSSURI() {
        return this.customCSSURI;
    }

    public void setCustomCSSURI(String customCSSURI) {
        this.customCSSURI = customCSSURI;
    }

    @SinceLC(value="8.2.1")
    public boolean isDebugEnabled() {
        return this.debugEnabled;
    }

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

    @SinceLC(value="8.2.1")
    public Boolean getGenerateTabIndex() {
        return this.generateTabIndex;
    }

    public void setGenerateTabIndex(Boolean generateTabIndex) {
        this.generateTabIndex = generateTabIndex;
    }

    @SinceLC(value="8.2.1")
    public StyleGenerationLevel getStyleGenerationLevel() {
        return this.styleGenerationLevel;
    }

    public void setStyleGenerationLevel(StyleGenerationLevel styleGenerationLevel) {
        this.styleGenerationLevel = styleGenerationLevel;
    }

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

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