-
Notifications
You must be signed in to change notification settings - Fork 188
/
piracy.xsd
226 lines (211 loc) · 7.58 KB
/
piracy.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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
~ Copyright (c) 2010-2019 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 elementFormDefault="qualified"
targetNamespace="http://midpoint.evolveum.com/xml/ns/samples/piracy"
xmlns:tns="http://midpoint.evolveum.com/xml/ns/samples/piracy"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- user extension -->
<xsd:complexType name="UserTypeExtensionType">
<xsd:annotation>
<xsd:appinfo>
<a:extension ref="c:UserType"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="ship" type="xsd:string">
<xsd:annotation>
<xsd:appinfo>
<a:indexed>true</a:indexed>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="tales" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:appinfo>
<a:indexed>false</a:indexed>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="weapon" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo>
<a:indexed>true</a:indexed>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="loot" type="xsd:int" minOccurs="0">
<xsd:annotation>
<xsd:appinfo>
<a:indexed>true</a:indexed>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="badLuck" type="xsd:long" minOccurs="0" maxOccurs="unbounded">
<!-- This has default indexed setting -->
</xsd:element>
<xsd:element name="funeralTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:appinfo>
<a:indexed>true</a:indexed>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="colors" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo>
<a:indexed>false</a:indexed>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="mark" type="tns:MarkType" minOccurs="0" maxOccurs="1">
<!-- Enumeration -->
</xsd:element>
<xsd:element name="key" type="xsd:base64Binary" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>MID-3999</xsd:documentation>
<xsd:appinfo>
<a:displayName>Treasure Key</a:displayName>
<a:displayOrder>888</a:displayOrder>
<a:indexed>false</a:indexed>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="binaryId" type="xsd:base64Binary" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>MID-3999</xsd:documentation>
<xsd:appinfo>
<a:displayName>Binary identifier</a:displayName>
<a:displayOrder>890</a:displayOrder>
<!-- <a:indexed>true</a:indexed> we do not support binary indexing -->
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="MarkType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="pegLeg">
<xsd:annotation>
<xsd:appinfo>
<a:label>Peg Leg</a:label>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="noEye">
<xsd:annotation>
<xsd:appinfo>
<a:label>No Eye</a:label>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="hook"/>
<xsd:enumeration value="tatoo"/>
<xsd:enumeration value="scar"/>
<xsd:enumeration value="bravery"/>
</xsd:restriction>
</xsd:simpleType>
<!-- assignment extension -->
<xsd:complexType name="AssignmentTypeExtensionType">
<xsd:annotation>
<xsd:appinfo>
<a:extension ref="c:AssignmentType"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element ref="tns:sea"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="sea" type="xsd:string"/>
<!-- role extension -->
<xsd:complexType name="RoleTypeExtensionType">
<xsd:annotation>
<xsd:appinfo>
<a:extension ref="c:RoleType"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="costCenter" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:appinfo>
<a:indexed>true</a:indexed>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element ref="tns:sea"/>
<xsd:element name="riskVector" type="tns:RiskVectorType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RiskVectorType">
<xsd:annotation>
<xsd:documentation>
Prism container in role extension.
MID-5080
</xsd:documentation>
<xsd:appinfo>
<a:container>true</a:container>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="risk" type="xsd:string" minOccurs="1"/>
<xsd:element name="value" type="xsd:int" minOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<!-- task extension -->
<xsd:complexType name="TaskTypeExtensionType">
<xsd:annotation>
<xsd:appinfo>
<a:extension ref="c:TaskType"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="userName" type="xsd:string">
<xsd:annotation>
<xsd:appinfo>
<a:indexed>false</a:indexed>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="userDescription" type="xsd:string">
<xsd:annotation>
<xsd:appinfo>
<a:indexed>false</a:indexed>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="studyGroup" type="xsd:string" maxOccurs="unbounded">
<xsd:annotation>
<xsd:appinfo>
<a:indexed>false</a:indexed>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- org extension -->
<xsd:complexType name="OrgTypeExtensionType">
<xsd:annotation>
<xsd:appinfo>
<a:extension ref="c:OrgType"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element ref="tns:sea"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>