ConnectionSetSchema.java
4.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
* 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;
}
}