LayoutService$class.java 3.69 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.forms.xtg.LayoutService$
 *  com.adobe.forms.xtg.LayoutService$$anonfun
 *  scala.Function0
 *  scala.MatchError
 *  scala.Tuple2
 *  scala.runtime.AbstractFunction0
 *  scala.xml.Node
 */
package com.adobe.forms.xtg;

import com.adobe.forms.logging.PerfLogger$;
import com.adobe.forms.model.FormContext;
import com.adobe.forms.model.XFAData;
import com.adobe.forms.model.XFALayout;
import com.adobe.forms.model.XFALayout$;
import com.adobe.forms.model.XFATemplate;
import com.adobe.forms.xtg.LayoutService;
import scala.Function0;
import scala.MatchError;
import scala.Tuple2;
import scala.runtime.AbstractFunction0;
import scala.xml.Node;

public abstract class LayoutService$class {
    public static XFALayout layoutReUseIntermediate(LayoutService $this, byte[] layout$1, byte[] layoutHiddenObj$1) {
        Node layoutXml = (Node)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable($this){
            public static final long serialVersionUID;

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

            public final java.lang.String apply() {
                return "XMLFormServiceImpl.layout.layoutXML.parse";
            }
        }, new scala.Serializable($this, layout$1){
            public static final long serialVersionUID;
            private final byte[] layout$1;

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

            public final Node apply() {
                return scala.xml.parsing.ConstructingParser$.MODULE$.fromSource(scala.io.Source$.MODULE$.fromBytes(this.layout$1, com.adobe.forms.model.ParameterStr$.MODULE$.Utf8()), true).document().docElem();
            }
        });
        Node layoutHiddenObjXml = (Node)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable($this){
            public static final long serialVersionUID;

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

            public final java.lang.String apply() {
                return "XMLFormServiceImpl.layout.layoutHiddenObjXML.parse";
            }
        }, new scala.Serializable($this, layoutHiddenObj$1){
            public static final long serialVersionUID;
            private final byte[] layoutHiddenObj$1;

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

            public final Node apply() {
                return scala.xml.parsing.ConstructingParser$.MODULE$.fromSource(scala.io.Source$.MODULE$.fromBytes(this.layoutHiddenObj$1, com.adobe.forms.model.ParameterStr$.MODULE$.Utf8()), true).document().docElem();
            }
        });
        return XFALayout$.MODULE$.apply(layoutXml, layoutHiddenObjXml);
    }

    public static XFALayout layout(LayoutService $this, XFATemplate template2, XFAData data2, FormContext formContext, boolean runScripts) {
        Tuple2<byte[], byte[]> tuple2 = $this.layoutIntermediate(template2, data2, formContext, runScripts);
        if (tuple2 != null) {
            Tuple2 tuple22 = new Tuple2(tuple2._1(), tuple2._2());
            byte[] layout = (byte[])tuple22._1();
            byte[] layoutHiddenObj = (byte[])tuple22._2();
            return $this.layoutReUseIntermediate(layout, layoutHiddenObj);
        }
        throw new MatchError(tuple2);
    }

    public static boolean layout$default$4(LayoutService $this) {
        return true;
    }

    public static boolean layoutIntermediate$default$4(LayoutService $this) {
        return true;
    }

    public static void $init$(LayoutService $this) {
    }
}