XFAConfig$XFARenderConfig$class.java 4.68 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  scala.MatchError
 *  scala.None
 *  scala.None$
 *  scala.Option
 *  scala.Predef
 *  scala.Predef$
 *  scala.Some
 *  scala.collection.Seq
 *  scala.collection.mutable.StringBuilder
 *  scala.collection.mutable.WrappedArray
 *  scala.xml.Elem
 *  scala.xml.MetaData
 *  scala.xml.NamespaceBinding
 *  scala.xml.Node
 *  scala.xml.NodeBuffer
 *  scala.xml.Null
 *  scala.xml.Null$
 *  scala.xml.Text
 *  scala.xml.TopScope
 *  scala.xml.TopScope$
 */
package com.adobe.forms.model;

import com.adobe.forms.model.FormContext;
import com.adobe.forms.model.XFAConfig;
import scala.MatchError;
import scala.None;
import scala.Option;
import scala.Predef;
import scala.Some;
import scala.collection.Seq;
import scala.collection.mutable.StringBuilder;
import scala.collection.mutable.WrappedArray;
import scala.xml.Elem;
import scala.xml.MetaData;
import scala.xml.NamespaceBinding;
import scala.xml.Node;
import scala.xml.NodeBuffer;
import scala.xml.Null;
import scala.xml.Text;
import scala.xml.TopScope;

public abstract class XFAConfig$XFARenderConfig$class {
    public static String configResKey(XFAConfig.XFARenderConfig $this) {
        return new StringBuilder().append((Object)"#renderHtml#").append((Object)$this.formContext().toString()).toString();
    }

    public static Elem output(XFAConfig.XFARenderConfig $this) {
        NodeBuffer $buf = new NodeBuffer();
        $buf.$amp$plus((Object)new Text("\n        "));
        NodeBuffer $buf2 = new NodeBuffer();
        $buf2.$amp$plus((Object)new Text("native"));
        $buf.$amp$plus((Object)new Elem(null, "type", (MetaData)Null..MODULE$, (NamespaceBinding)Predef..MODULE$.$scope(), (Seq)$buf2));
        $buf.$amp$plus((Object)new Text("\n      "));
        return new Elem(null, "output", (MetaData)Null..MODULE$, (NamespaceBinding)Predef..MODULE$.$scope(), (Seq)$buf);
    }

    public static Elem destination(XFAConfig.XFARenderConfig $this) {
        NodeBuffer $buf = new NodeBuffer();
        $buf.$amp$plus((Object)new Text("webClient"));
        return new Elem(null, "destination", (MetaData)Null..MODULE$, (NamespaceBinding)Predef..MODULE$.$scope(), (Seq)$buf);
    }

    public static Elem script(XFAConfig.XFARenderConfig $this) {
        NodeBuffer $buf = new NodeBuffer();
        $buf.$amp$plus((Object)new Text("\n        "));
        NodeBuffer $buf2 = new NodeBuffer();
        $buf2.$amp$plus((Object)new Text("validate nullTest formatTest docClose"));
        $buf.$amp$plus((Object)new Elem(null, "exclude", (MetaData)Null..MODULE$, (NamespaceBinding)Predef..MODULE$.$scope(), (Seq)$buf2));
        $buf.$amp$plus((Object)new Text("\n        "));
        NodeBuffer $buf3 = new NodeBuffer();
        $buf3.$amp$plus((Object)new Text("both"));
        $buf.$amp$plus((Object)new Elem(null, "runScripts", (MetaData)Null..MODULE$, (NamespaceBinding)Predef..MODULE$.$scope(), (Seq)$buf3));
        $buf.$amp$plus((Object)new Text("\n      "));
        return new Elem(null, "script", (MetaData)Null..MODULE$, (NamespaceBinding)Predef..MODULE$.$scope(), (Seq)$buf);
    }

    public static Elem xdp(XFAConfig.XFARenderConfig $this) {
        NodeBuffer $buf = new NodeBuffer();
        $buf.$amp$plus((Object)new Text("\n        "));
        $buf.$amp$plus((Object)new Elem(null, "packets", (MetaData)Null..MODULE$, (NamespaceBinding)Predef..MODULE$.$scope(), (Seq)Predef..MODULE$.wrapRefArray((Object[])new Node[0])));
        $buf.$amp$plus((Object)new Text("\n      "));
        return new Elem(null, "xdp", (MetaData)Null..MODULE$, (NamespaceBinding)Predef..MODULE$.$scope(), (Seq)$buf);
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public static Elem locale(XFAConfig.XFARenderConfig $this) {
        Elem elem;
        Option<String> option = $this.formContext().locale();
        if (option instanceof Some) {
            Elem elem2;
            elem = elem2;
            NodeBuffer $buf = new NodeBuffer();
            $buf.$amp$plus(((Some)option).x());
            elem2 = new Elem(null, "locale", (MetaData)Null..MODULE$, (NamespaceBinding)Predef..MODULE$.$scope(), (Seq)$buf);
            return elem;
        }
        None. v2 = None..MODULE$;
        Option<String> option2 = option;
        if (v2 == null) {
            if (option2 != null) {
                throw new MatchError(option);
            }
        } else if (!v2.equals(option2)) throw new MatchError(option);
        elem = new Elem(null, "locale", (MetaData)Null..MODULE$, (NamespaceBinding)Predef..MODULE$.$scope(), (Seq)Predef..MODULE$.wrapRefArray((Object[])new Node[0]));
        return elem;
    }

    public static void $init$(XFAConfig.XFARenderConfig $this) {
    }
}