WSDLConnection.java 2.06 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xfa.connectionset;

import com.adobe.xfa.Dispatcher;
import com.adobe.xfa.Element;
import com.adobe.xfa.EventManager;
import com.adobe.xfa.Model;
import com.adobe.xfa.Node;
import com.adobe.xfa.ProtoableNode;
import com.adobe.xfa.ScriptTable;
import com.adobe.xfa.XFA;
import com.adobe.xfa.connectionset.ConnectionSetModel;
import com.adobe.xfa.connectionset.WSDLConnectionScript;
import org.xml.sax.Attributes;

public class WSDLConnection
extends ProtoableNode {
    public WSDLConnection(Element parent, Node prevSibling) {
        super(parent, prevSibling, null, "wsdlConnection", "wsdlConnection", null, XFA.WSDLCONNECTIONTAG, "wsdlConnection");
    }

    @Override
    public Element clone(Element oParent, boolean deep) {
        WSDLConnection oThis;
        EventManager.EventTable oEventTable;
        Element oClone = super.clone(oParent, deep);
        assert (oClone != null);
        if (oClone != null && (oEventTable = (oThis = this).getEventTable(false)) != null) {
            EventManager.EventTable oCloneEventTable = oClone.getEventTable(true);
            assert (oCloneEventTable != null);
            if (oCloneEventTable != null) {
                int nSize = oEventTable.size();
                for (int nIndex = 0; nIndex < nSize; ++nIndex) {
                    Dispatcher oDispatcher = (Dispatcher)oEventTable.get(nIndex);
                    oCloneEventTable.add(nIndex, oDispatcher);
                }
            }
        }
        return oClone;
    }

    public boolean execute(boolean inDoDynamicMerge) {
        boolean bResult = false;
        Model oModel = this.getModel();
        if (oModel instanceof ConnectionSetModel) {
            ConnectionSetModel oConnectionSetModel = (ConnectionSetModel)oModel;
            bResult = oConnectionSetModel.execute(this, inDoDynamicMerge);
        }
        return bResult;
    }

    public boolean executePermsCheck() {
        return true;
    }

    @Override
    public ScriptTable getScriptTable() {
        return WSDLConnectionScript.getScriptTable();
    }
}