XFAConfig$XFASubmitDataConfig$class.java 5.77 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.forms.model.XFAConfig$XFASubmitDataConfig$
 *  com.adobe.forms.model.XFAConfig$XFASubmitDataConfig$$anonfun
 *  com.adobe.forms.model.XFAConfig$XFASubmitDataConfig$$anonfun$script
 *  com.adobe.forms.model.XFAConfig$XFASubmitDataConfig$$anonfun$xdp
 *  scala.Function0
 *  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.runtime.AbstractFunction0
 *  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.Function0;
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.runtime.AbstractFunction0;
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$XFASubmitDataConfig$class {
    public static String configResKey(XFAConfig.XFASubmitDataConfig $this) {
        return new StringBuilder().append((Object)"#submitData#").append((Object)$this.formContext().toString()).toString();
    }

    public static Elem output(XFAConfig.XFASubmitDataConfig $this) {
        NodeBuffer $buf = new NodeBuffer();
        $buf.$amp$plus((Object)new Text("\n        "));
        NodeBuffer $buf2 = new NodeBuffer();
        $buf2.$amp$plus((Object)new Text("mergedXDP"));
        $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.XFASubmitDataConfig $this) {
        return new Elem(null, "destination", (MetaData)Null..MODULE$, (NamespaceBinding)Predef..MODULE$.$scope(), (Seq)Predef..MODULE$.wrapRefArray((Object[])new Node[0]));
    }

    public static Elem script(XFAConfig.XFASubmitDataConfig $this) {
        NodeBuffer $buf = new NodeBuffer();
        $buf.$amp$plus((Object)new Text("\n        "));
        NodeBuffer $buf2 = new NodeBuffer();
        $buf2.$amp$plus($this.formContext().scriptsToRun().getOrElse((Function0)new scala.Serializable($this){
            public static final long serialVersionUID;

            public static {
                long l = XFAConfig.XFASubmitDataConfig..anonfun.script.serialVersionUID = 0;
            }

            public final String apply() {
                return "none";
            }
        }));
        $buf.$amp$plus((Object)new Elem(null, "runScripts", (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(" "));
        $buf.$amp$plus((Object)new Elem(null, "exclude", (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.XFASubmitDataConfig $this) {
        NodeBuffer $buf = new NodeBuffer();
        $buf.$amp$plus((Object)new Text("\n        "));
        NodeBuffer $buf2 = new NodeBuffer();
        $buf2.$amp$plus($this.formContext().packets().getOrElse((Function0)new scala.Serializable($this){
            public static final long serialVersionUID;

            public static {
                long l = XFAConfig.XFASubmitDataConfig..anonfun.xdp.serialVersionUID = 0;
            }

            public final String apply() {
                return com.adobe.forms.model.ParameterStr$.MODULE$.Datasets();
            }
        }));
        $buf.$amp$plus((Object)new Elem(null, "packets", (MetaData)Null..MODULE$, (NamespaceBinding)Predef..MODULE$.$scope(), (Seq)$buf2));
        $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.XFASubmitDataConfig $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.XFASubmitDataConfig $this) {
    }
}