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

import com.adobe.xfa.Attribute;
import com.adobe.xfa.ChildReln;
import com.adobe.xfa.Element;
import com.adobe.xfa.GenericTextContainer;
import com.adobe.xfa.Node;
import com.adobe.xfa.Schema;
import com.adobe.xfa.XFA;
import com.adobe.xfa.connectionset.ConnectionSetModel;
import com.adobe.xfa.connectionset.EffectiveInputPolicy;
import com.adobe.xfa.connectionset.EffectiveOutputPolicy;
import com.adobe.xfa.connectionset.WSDLConnection;
import com.adobe.xfa.connectionset.XMLConnection;
import com.adobe.xfa.connectionset.XSDConnection;

public final class ConnectionSetSchema
extends Schema {
    public ConnectionSetSchema() {
        super("http://www.xfa.org/schema/xfa-connection-set/", XFA.XFA_ATTRIBUTE_MIN, XFA.XFA_ATTRIBUTE_MAX, XFA.XFA_ELEMENT_MIN, XFA.XFA_ELEMENT_MAX);
        this.initSchema();
    }

    @Override
    protected void initSchema() {
        super.initSchema();
        this.putChildAttrs(XFA.ROOTELEMENTTAG);
        this.putElement(XFA.ROOTELEMENTTAG, XFA.TEXTNODETAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putChildAttrs(XFA.URITAG);
        this.putElement(XFA.URITAG, XFA.TEXTNODETAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putChildAttrs(XFA.SOAPACTIONTAG);
        this.putElement(XFA.SOAPACTIONTAG, XFA.TEXTNODETAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putChildAttrs(XFA.SOAPADDRESSTAG);
        this.putElement(XFA.SOAPADDRESSTAG, XFA.TEXTNODETAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putChildAttrs(XFA.WSDLADDRESSTAG);
        this.putElement(XFA.WSDLADDRESSTAG, XFA.TEXTNODETAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putChildAttrs(XFA.OPERATIONTAG);
        this.putElement(XFA.OPERATIONTAG, XFA.TEXTNODETAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putAttribute(XFA.OPERATIONTAG, XFA.INPUTTAG, null, 21, 63, 0);
        this.putAttribute(XFA.OPERATIONTAG, XFA.OUTPUTTAG, null, 21, 63, 0);
        this.putChildAttrs(XFA.EFFECTIVEINPUTPOLICYTAG);
        this.putChildAttrs(XFA.EFFECTIVEOUTPUTPOLICYTAG);
        this.putAttribute(XFA.XMLCONNECTIONTAG, XFA.NAMETAG, null, 21, 63, 0);
        this.putAttribute(XFA.XMLCONNECTIONTAG, XFA.DATADESCRIPTIONTAG, null, 21, 63, 0);
        this.putElement(XFA.XMLCONNECTIONTAG, XFA.URITAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putAttribute(XFA.XSDCONNECTIONTAG, XFA.NAMETAG, null, 21, 63, 0);
        this.putAttribute(XFA.XSDCONNECTIONTAG, XFA.DATADESCRIPTIONTAG, null, 21, 63, 0);
        this.putElement(XFA.XSDCONNECTIONTAG, XFA.URITAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putElement(XFA.XSDCONNECTIONTAG, XFA.ROOTELEMENTTAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putAttribute(XFA.WSDLCONNECTIONTAG, XFA.NAMETAG, null, 21, 63, 0);
        this.putAttribute(XFA.WSDLCONNECTIONTAG, XFA.DATADESCRIPTIONTAG, null, 21, 63, 0);
        this.putElement(XFA.WSDLCONNECTIONTAG, XFA.SOAPACTIONTAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putElement(XFA.WSDLCONNECTIONTAG, XFA.SOAPADDRESSTAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putElement(XFA.WSDLCONNECTIONTAG, XFA.WSDLADDRESSTAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putElement(XFA.WSDLCONNECTIONTAG, XFA.OPERATIONTAG, ChildReln.getZeroOrOne(), 21, 63, 0);
        this.putElement(XFA.WSDLCONNECTIONTAG, XFA.EFFECTIVEINPUTPOLICYTAG, ChildReln.getZeroOrOne(), 28, 63, 0);
        this.putElement(XFA.WSDLCONNECTIONTAG, XFA.EFFECTIVEOUTPUTPOLICYTAG, ChildReln.getZeroOrOne(), 28, 63, 0);
        this.putElement(XFA.CONNECTIONSETTAG, XFA.XMLCONNECTIONTAG, ChildReln.getZeroOrMore(), 21, 63, 0);
        this.putElement(XFA.CONNECTIONSETTAG, XFA.XSDCONNECTIONTAG, ChildReln.getZeroOrMore(), 21, 63, 0);
        this.putElement(XFA.CONNECTIONSETTAG, XFA.WSDLCONNECTIONTAG, ChildReln.getZeroOrMore(), 21, 63, 0);
    }

    @Override
    protected Element newElement(int eTag, Element parent, Node prevSibling) {
        if (eTag == XFA.XMLCONNECTIONTAG) {
            return new XMLConnection(parent, prevSibling);
        }
        if (eTag == XFA.XSDCONNECTIONTAG) {
            return new XSDConnection(parent, prevSibling);
        }
        if (eTag == XFA.WSDLCONNECTIONTAG) {
            return new WSDLConnection(parent, prevSibling);
        }
        if (eTag == XFA.CONNECTIONSETTAG) {
            return new ConnectionSetModel(parent, prevSibling);
        }
        if (eTag == XFA.EFFECTIVEINPUTPOLICYTAG) {
            return new EffectiveInputPolicy(parent, prevSibling);
        }
        if (eTag == XFA.EFFECTIVEOUTPUTPOLICYTAG) {
            return new EffectiveOutputPolicy(parent, prevSibling);
        }
        if (eTag == XFA.ROOTELEMENTTAG || eTag == XFA.URITAG || eTag == XFA.SOAPACTIONTAG || eTag == XFA.SOAPADDRESSTAG || eTag == XFA.WSDLADDRESSTAG || eTag == XFA.OPERATIONTAG) {
            return new GenericTextContainer(parent, prevSibling);
        }
        return null;
    }
}