-
Notifications
You must be signed in to change notification settings - Fork 1
/
annotated-container-definition.xsd
162 lines (142 loc) · 5.78 KB
/
annotated-container-definition.xsd
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema
xml:lang="en"
version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="https://annotated-container.cspray.io/schema/annotated-container-definition.xsd"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
targetNamespace="https://annotated-container.cspray.io/schema/annotated-container-definition.xsd">
<xs:annotation>
<xs:documentation>
Defines how to store the compilation results of a ContainerDefinition in XML format. This format is
intended to be used both in caching scenarios and static analysis of a container.
</xs:documentation>
</xs:annotation>
<xs:element name="annotatedContainerDefinition" type="containerDefinitionType">
<xs:annotation>
<xs:documentation>
The root element.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="containerDefinitionType">
<xs:all>
<xs:element name="serviceDefinitions" type="serviceDefinitionsType" />
<xs:element name="aliasDefinitions" type="aliasDefinitionsType" />
<xs:element name="configurationDefinitions" type="configurationDefinitionsType" />
<xs:element name="servicePrepareDefinitions" type="servicePrepareDefinitionsType" />
<xs:element name="serviceDelegateDefinitions" type="serviceDelegateDefinitionsType" />
<xs:element name="injectDefinitions" type="injectDefinitionsType" />
</xs:all>
<xs:attribute name="version" use="required" type="xs:token" />
</xs:complexType>
<xs:complexType name="serviceDefinitionsType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="serviceDefinition" type="serviceDefinitionType" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="serviceDefinitionType">
<xs:all>
<xs:element name="type" type="xs:token" />
<xs:element name="name" type="xs:token" />
<xs:element name="profiles" type="profilesType" />
<xs:element name="concreteOrAbstract" type="concreteOrAbstractType" />
<xs:element name="attribute" type="xs:string" />
</xs:all>
<xs:attribute name="isPrimary" type="xs:boolean" default="false" />
</xs:complexType>
<xs:complexType name="aliasDefinitionsType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="aliasDefinition" type="aliasDefinitionType" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="aliasDefinitionType">
<xs:all>
<xs:element name="abstractService" type="xs:token" />
<xs:element name="concreteService" type="xs:token" />
</xs:all>
</xs:complexType>
<xs:complexType name="configurationDefinitionsType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="configurationDefinition" type="configurationDefinitionType" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="configurationDefinitionType">
<xs:all>
<xs:element name="type" type="xs:token" />
<xs:element name="name" type="xs:token" />
<xs:element name="attribute" type="xs:string" />
</xs:all>
</xs:complexType>
<xs:complexType name="servicePrepareDefinitionsType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="servicePrepareDefinition" type="servicePrepareDefinitionType" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="servicePrepareDefinitionType">
<xs:all>
<xs:element name="type" type="xs:token" />
<xs:element name="method" type="xs:token" />
<xs:element name="attribute" type="xs:string" />
</xs:all>
</xs:complexType>
<xs:complexType name="serviceDelegateDefinitionsType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="serviceDelegateDefinition" type="serviceDelegateDefinitionType" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="serviceDelegateDefinitionType">
<xs:all>
<xs:element name="service" type="xs:token" />
<xs:element name="delegateType" type="xs:token" />
<xs:element name="delegateMethod" type="xs:token" />
<xs:element name="attribute" type="xs:string" />
</xs:all>
</xs:complexType>
<xs:complexType name="injectDefinitionsType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="injectDefinition" type="injectDefinitionType" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="injectDefinitionType">
<xs:all>
<xs:element name="target" type="injectTargetType" />
<xs:element name="valueType" type="xs:token" />
<xs:element name="value" type="xs:string" />
<xs:element name="profiles" type="profilesType" />
<xs:element name="store" type="xs:token" />
<xs:element name="attribute" type="xs:string" />
</xs:all>
</xs:complexType>
<xs:complexType name="injectTargetType">
<xs:choice>
<xs:element name="classMethod" type="classMethodType" />
<xs:element name="classProperty" type="classPropertyType" />
</xs:choice>
</xs:complexType>
<xs:complexType name="profilesType">
<xs:sequence maxOccurs="unbounded">
<xs:element name="profile" type="xs:token" />
</xs:sequence>
</xs:complexType>
<xs:simpleType name="concreteOrAbstractType">
<xs:restriction base="xs:string">
<xs:enumeration value="Concrete" />
<xs:enumeration value="Abstract" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="classMethodType">
<xs:all>
<xs:element name="class" type="xs:token" />
<xs:element name="method" type="xs:token" />
<xs:element name="parameter" type="xs:token" />
</xs:all>
</xs:complexType>
<xs:complexType name="classPropertyType">
<xs:all>
<xs:element name="class" type="xs:token" />
<xs:element name="property" type="xs:token" />
</xs:all>
</xs:complexType>
</xs:schema>