-
Notifications
You must be signed in to change notification settings - Fork 188
/
foo-1.xsd
417 lines (385 loc) · 17.7 KB
/
foo-1.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
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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2013 Evolveum
~
~ 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.
-->
<xsd:schema targetNamespace="http://midpoint.evolveum.com/xml/ns/test/foo-1.xsd"
xmlns:tns="http://midpoint.evolveum.com/xml/ns/test/foo-1.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:ft="http://midpoint.evolveum.com/xml/ns/test/foo-types-1"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
elementFormDefault="qualified"
jaxb:extensionBindingPrefixes="xjc"
jaxb:version="2.0">
<xsd:annotation>
<xsd:documentation>
Testing schema for Prism framework
</xsd:documentation>
<xsd:appinfo>
<jaxb:globalBindings>
<xjc:typeSubstitution type="complex" />
<xjc:serializable uid="201202081233" />
</jaxb:globalBindings>
</xsd:appinfo>
</xsd:annotation>
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:import namespace="http://www.w3.org/2001/XMLSchema" schemaLocation="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation>
Importing the schema of XSD schema definition explicitly. This causes that we can use "strict" matching
for the xsd:schema elements used in runtime.
</xsd:documentation>
</xsd:annotation>
</xsd:import>
<xsd:import namespace="http://www.w3.org/2001/04/xmlenc#" schemaLocation="http://www.w3.org/2001/04/xmlenc">
<xsd:annotation>
<xsd:documentation>
The XML Encryption schema. Used for "protected" data types (property encryption).
</xsd:documentation>
</xsd:annotation>
</xsd:import>
<xsd:import namespace="http://prism.evolveum.com/xml/ns/public/types-3" schemaLocation="http://prism.evolveum.com/xml/ns/public/types-3">
<xsd:annotation>
<xsd:documentation>
The XML Encryption schema. Used for "protected" data types (property encryption).
</xsd:documentation>
</xsd:annotation>
</xsd:import>
<xsd:import namespace="http://midpoint.evolveum.com/xml/ns/test/foo-types-1" schemaLocation="http://midpoint.evolveum.com/xml/ns/test/foo-types-1"/>
<xsd:element name="name" type="t:PolyStringType"/>
<xsd:element name="displayName" type="xsd:string"/>
<xsd:element name="description" type="xsd:string"/>
<xsd:element name="extension">
<xsd:annotation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax">
</xsd:any>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- Basic Object Types -->
<xsd:complexType name="ObjectType" abstract="true">
<xsd:annotation>
<xsd:appinfo>
<a:container/>
<a:object/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element ref="tns:name" minOccurs="0">
<xsd:annotation>
<xsd:appinfo>
<a:displayName>Name</a:displayName>
<a:displayOrder>0</a:displayOrder>
<a:help>Short unique name of the object</a:help>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element ref="tns:description" minOccurs="0"/>
<xsd:element ref="tns:extension" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:appinfo>
<a:displayName>Extension</a:displayName>
<a:displayOrder>1000</a:displayOrder>
<a:help>Object extension contains extra properties</a:help>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="parentOrg" type="tns:ObjectType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo>
<a:objectReference>tns:parentOrgRef</a:objectReference>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="parentOrgRef" type="tns:ObjectReferenceType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:ObjectType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="oid" type="xsd:string" use="optional"/>
<xsd:attribute name="version" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:element name="object" type="tns:ObjectType"/>
<xsd:complexType name="UserType">
<xsd:complexContent>
<xsd:extension base="tns:ObjectType">
<xsd:sequence>
<!-- Single-valued properties -->
<xsd:element name="fullName" type="xsd:string">
<xsd:annotation>
<xsd:appinfo>
<a:displayName>Full Name</a:displayName>
<a:displayOrder>10</a:displayOrder>
<a:help>User full name</a:help>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="givenName" type="xsd:string" minOccurs="0"/>
<xsd:element name="familyName" type="xsd:string" minOccurs="0"/>
<!-- Multi-valued property -->
<xsd:element name="additionalNames" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="polyName" type="t:PolyStringType" minOccurs="0"/>
<xsd:element name="locality" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<!-- Multi-valued container -->
<xsd:element name="assignment" type="tns:AssignmentType" minOccurs="0" maxOccurs="unbounded"/>
<!-- Single-valued container -->
<xsd:element name="activation" type="tns:ActivationType" minOccurs="0">
<xsd:annotation>
<xsd:appinfo>
<a:displayName>Activation</a:displayName>
<a:displayOrder>1200</a:displayOrder>
<a:help>User activation properties</a:help>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="password" type="t:ProtectedStringType" minOccurs="0"/>
<xsd:element name="account" type="tns:AccountType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo>
<a:objectReference>tns:accountRef</a:objectReference>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="accountRef" type="tns:ObjectReferenceType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:AccountType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<!-- element that has different names in XML/JSON/YAML and in java bean -->
<xsd:element name="special" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="user" type="tns:UserType"/>
<xsd:complexType name="ObjectReferenceType">
<xsd:annotation>
<xsd:documentation>
Reference to an object. It contains OID of the object that it refers to.
</xsd:documentation>
<xsd:appinfo>
<a:objectReference/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
Free-form description of this reference. Usually used to describe the purpose of
a search filter embedded in the reference.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="filter" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
Filter that can be used to dynamically lookup the reference OID e.g. during imports.
It must not be used for normal operations and references with the filter must not
be stored in the repository.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="object" minOccurs="0" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xsd:sequence>
<xsd:anyAttribute namespace="##any" processContents="lax"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="oid" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
Target of the reference.
Optional only during imports. The objects stored in the repository must have the OID
value filled in.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="type" type="xsd:QName" use="optional">
<xsd:annotation>
<xsd:documentation>
XSD type of the reference target object.
It should be provided if the type is known (e.g. when
reading object from the repository).
The primary reason for this is to have some kind of
type safety but especially to be able to use
this in the XPaths that specify what references to resolve.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="AccountType">
<xsd:complexContent>
<xsd:extension base="tns:ObjectType">
<xsd:sequence>
<xsd:element name="attributes" type="tns:AttributesType" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="account" type="tns:AccountType"/>
<xsd:complexType name="AssignmentType">
<xsd:annotation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description" type="xsd:string" minOccurs="0"/>
<xsd:element name="accountConstruction" type="tns:AccountConstructionType" minOccurs="0"/>
<xsd:element name="activation" type="tns:ActivationType" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="AccountConstructionType">
<xsd:annotation>
<xsd:documentation>
Account construction type is NOT a container. It is a complex-type property.
This tests the ability to deal with complex type properties and also with
dateTime and RawType fields in them.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="howto" type="xsd:string"/>
<xsd:element name="when" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="value" type="t:RawType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ActivationType">
<xsd:annotation>
<xsd:documentation>
ActivationTyps is a container, therefore the following elements are properties.
This tests the ability to deal with boolean and dateTime properties.
</xsd:documentation>
<xsd:appinfo>
<a:container/>
<a:operational>true</a:operational>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="enabled" type="xsd:boolean"/>
<xsd:element name="validFrom" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="validTo" type="xsd:dateTime" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AttributesType">
<xsd:annotation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="DummyProtectedStringType">
<xsd:annotation>
<xsd:documentation>
This type mimmicks a complex type that may be used in properties.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="value" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="FooObjectClass">
<xsd:annotation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element ref="ft:uid" minOccurs="0"/>
<xsd:element ref="ft:name" minOccurs="1" maxOccurs="1"/>
<xsd:element name="foo" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ResourceType">
<xsd:complexContent>
<xsd:extension base="tns:ObjectType">
<xsd:sequence>
<xsd:element name="schema" type="t:SchemaDefinitionType" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="resource" type="tns:ResourceType"/>
<!-- The following is currently not supported by prism. Keeping it here if needed in the future... -->
<xsd:complexType name="EventHandlerType">
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
<xsd:element name="handler" type="tns:EventHandlerType" abstract="true" />
<xsd:complexType name="EventHandlerChainType">
<xsd:complexContent>
<xsd:extension base="tns:EventHandlerType">
<xsd:sequence>
<xsd:element ref="tns:handler" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="handlerChain" type="tns:EventHandlerChainType" substitutionGroup="tns:handler" />
<xsd:complexType name="EventCategoryFilterType">
<xsd:complexContent>
<xsd:extension base="tns:EventHandlerType">
<xsd:sequence>
<xsd:element name="category" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="categoryFilter" type="tns:EventCategoryFilterType" substitutionGroup="tns:handler" />
<xsd:complexType name="EventStatusFilterType">
<xsd:complexContent>
<xsd:extension base="tns:EventHandlerType">
<xsd:sequence>
<xsd:element name="status" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="statusFilter" type="tns:EventStatusFilterType" substitutionGroup="tns:handler" />
<xsd:complexType name="EventOperationFilterType">
<xsd:complexContent>
<xsd:extension base="tns:EventHandlerType">
<xsd:sequence>
<xsd:element name="operation" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="operationFilter" type="tns:EventOperationFilterType" substitutionGroup="tns:handler" />
</xsd:schema>