LCOptionsXFAInterpreter$.java 3.59 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.forms.service.impl.LCOptionsXFAInterpreter$$anonfun
 *  com.adobe.forms.service.impl.LCOptionsXFAInterpreter$$anonfun$lcFormOptions2FormContext
 *  scala.Function0
 *  scala.None
 *  scala.None$
 *  scala.Option
 *  scala.ScalaObject
 *  scala.Some
 *  scala.runtime.AbstractFunction0
 */
package com.adobe.forms.service.impl;

import com.adobe.forms.logging.PerfLogger$;
import com.adobe.forms.model.FormContext;
import com.adobe.forms.option.LCFormsOptions;
import com.adobe.forms.service.impl.LCOptionsXFAInterpreter$;
import scala.Function0;
import scala.None;
import scala.Option;
import scala.ScalaObject;
import scala.Some;
import scala.runtime.AbstractFunction0;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
public final class LCOptionsXFAInterpreter$
implements ScalaObject {
    public static final LCOptionsXFAInterpreter$ MODULE$;

    public static {
        new com.adobe.forms.service.impl.LCOptionsXFAInterpreter$();
    }

    public Option<String> optionize(String s) {
        return s == null || s.isEmpty() ? None..MODULE$ : new Some((Object)s);
    }

    public FormContext lcFormOptions2FormContext(LCFormsOptions options$1) {
        return (FormContext)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(){
            public static final long serialVersionUID;

            public static {
                long l = anonfun.lcFormOptions2FormContext.serialVersionUID = 0;
            }

            public final String apply() {
                return "LCOptionsXFAInterpreter.lcFormOptions2FormContext";
            }
        }, new scala.Serializable(options$1){
            public static final long serialVersionUID;
            private final LCFormsOptions options$1;

            public static {
                long l = anonfun.lcFormOptions2FormContext.serialVersionUID = 0;
            }

            public final FormContext apply() {
                Option<String> x$1 = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$1.getContentRoot());
                Option<String> x$2 = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$1.getPacket());
                Option<String> x$3 = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$1.getDebugDir());
                Option<String> x$4 = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$1.getSubmitUrl());
                Option<String> x$5 = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$1.getActivity());
                Option<String> x$6 = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$1.getContextSom());
                Option<String> x$7 = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$1.getUseXFA4J());
                boolean x$8 = !"false".equals(this.options$1.getUseRenderCache());
                boolean x$9 = !"false".equals(this.options$1.getUsePreRenderCache());
                Option<String> x$10 = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$1.getScriptsToRun());
                boolean x$11 = !"false".equals(this.options$1.getGenerateCustomizableInfo()) && !"0".equals(this.options$1.getGenerateCustomizableInfo());
                Option<String> x$12 = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$1.getLocale());
                boolean x$13 = "true".equals(this.options$1.getMinifyTemplateScripts());
                return new FormContext(x$1, x$4, x$3, x$2, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12, x$13);
            }
        });
    }

    private LCOptionsXFAInterpreter$() {
        MODULE$ = this;
    }
}