-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathgalleon-layer-1_0.xsd
More file actions
327 lines (304 loc) · 11.5 KB
/
galleon-layer-1_0.xsd
File metadata and controls
327 lines (304 loc) · 11.5 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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
Copyright 2016-2021 Red Hat, Inc. and/or its affiliates
and other contributors as indicated by the @author tags.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<xs:schema xmlns="urn:jboss:galleon:layer-spec:1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="urn:jboss:galleon:layer-spec:1.0"
version="2.0">
<xs:element name="layer-spec" type="layerSpecType" />
<xs:complexType name="layerSpecType">
<xs:annotation>
<xs:documentation>
Describes the specification of the layer.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="dependencies" type="dependenciesType" minOccurs="0" maxOccurs="1"/>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="feature" type="featureType" minOccurs="1" maxOccurs="1"/>
<xs:element name="feature-group" type="featureGroupType" minOccurs="1" maxOccurs="1"/>
<xs:element name="origin" type="originType" minOccurs="1" maxOccurs="1"/>
<xs:element name="packages" type="packagesType" minOccurs="1" maxOccurs="1"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Layer name
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="dependenciesType">
<xs:annotation>
<xs:documentation>
Set of layers this layer depends on.
</xs:documentation>
</xs:annotation>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="layer" type="layerType" />
</xs:choice>
</xs:complexType>
<xs:complexType name="layerType">
<xs:annotation>
<xs:documentation>
A layer dependency
</xs:documentation>
</xs:annotation>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Layer name
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="optional" type="xs:boolean" use="optional" default="false">
<xs:annotation>
<xs:documentation>
Optional dependency are ignored if the layer is not present in the provisioning (excluded layer).
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="packagesType">
<xs:annotation>
<xs:documentation>
Set of packages this layer depends on.
</xs:documentation>
</xs:annotation>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="package" type="packageType" />
<xs:element name="origin" type="packageOriginType" />
</xs:choice>
</xs:complexType>
<xs:complexType name="packageOriginType">
<xs:annotation>
<xs:documentation>
Scope a given package inside a feature-pack (the origin name).
</xs:documentation>
</xs:annotation>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="package" type="packageType" maxOccurs="1" minOccurs="1"/>
</xs:choice>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Feature-pack dependency name as defined in the feature-pack.xml origin.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="packageType">
<xs:annotation>
<xs:documentation>
A package dependency
</xs:documentation>
</xs:annotation>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Package name
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="optional" type="xs:boolean" use="optional" default="false">
<xs:annotation>
<xs:documentation>
A non optional package dependency is a 'required' dependency. 'required' dependencies are always provisioned. Optional package dependencies are provisioned when the provisioning option 'optional-packages' is set to 'all' and 'passive+'. Optional packages can be excluded.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="passive" type="xs:boolean" use="optional" default="false">
<xs:annotation>
<xs:documentation>
A passive package dependency is provisioned only if all the required packages it depends on are provisioned. Passive package dependencies are provisioned when the provisioning option 'optional-packages' is set to 'all', 'passive' and 'passive+'. When 'passive' and 'passive+' are used, all the packages the package depends on are first checked to be present. If some required dependencies are missing, the package is not provisioned. Passive packages can be excluded.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="originType">
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="feature-group" type="featureGroupType"/>
<xs:element name="feature" type="featureType"/>
</xs:choice>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Feature-pack origin name
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="featureType">
<xs:annotation>
<xs:documentation>
Describes feature configuration.
</xs:documentation>
</xs:annotation>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="depends" type="featureDependsType"/>
<xs:element name="param" type="featureParamType"/>
<xs:element name="feature" type="featureType"/>
<xs:element name="feature-group" type="featureGroupType"/>
<xs:element name="origin" type="originType"/>
<xs:element name="reset" type="resetType"/>
<xs:element name="unset" type="unsetType"/>
</xs:choice>
<xs:attribute name="spec" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Feature specification name.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="parent-ref" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
Reference to parent feature
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="featureDependsType">
<xs:attribute name="feature-id" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Feature ID
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="featureParamType">
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Parameter name
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="value" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
Parameter value
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="featureGroupType">
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="include" type="featureGroupIncludeType"/>
<xs:element name="exclude" type="featureGroupExcludeType"/>
<xs:element name="origin" type="featureGroupOriginType"/>
<xs:element name="featureGroup" type="featureGroupType"/>
<xs:element name="feature" type="featureType"/>
<xs:element name="packages" type="packagesType"/>
</xs:choice>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Feature group name
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="inherit-features" type="xs:boolean" use="optional" default="true">
<xs:annotation>
<xs:documentation>
Whether to inherit the features from the feature-group.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="featureGroupIncludeType">
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="depends" type="featureDependsType"/>
<xs:element name="param" type="featureParamType"/>
<xs:element name="feature" type="featureType"/>
<xs:element name="reset" type="resetType"/>
<xs:element name="unset" type="unsetType"/>
</xs:choice>
<xs:attribute name="spec" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
Feature specification name.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="feature-id" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
Feature ID.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="featureGroupExcludeType">
<xs:attribute name="spec" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
Feature specification name, to exclude a spec.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="feature-id" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>
Feature ID, to exclude a specID
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="featureGroupOriginType">
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="include" type="featureGroupIncludeType"/>
<xs:element name="exclude" type="featureGroupExcludeType"/>
<xs:element name="featureGroup" type="featureGroupType"/>
<xs:element name="feature" type="featureType"/>
<xs:element name="packages" type="packagesType"/>
</xs:choice>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Feature-pack origin name
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="resetType">
<xs:annotation>
<xs:documentation>
Reset a parameter
</xs:documentation>
</xs:annotation>
<xs:attribute name="param" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Parameter name
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="unsetType">
<xs:annotation>
<xs:documentation>
Unset a parameter
</xs:documentation>
</xs:annotation>
<xs:attribute name="param" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Parameter name
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:schema>