annotate _test/Resources/resources.xsd @ 223:edf011437be8

updated resources schema
author sergey
date Tue, 28 Aug 2012 17:29:42 +0400
parents 84a6382b49c8
children e6c050db7d98
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
218
sergey
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
2 <schema targetNamespace="http://implab.org/schemas/resources"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
3 elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
4 xmlns:tns="http://implab.org/schemas/resources">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
5 <element name="resources">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
6 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
7 <sequence>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
8 <element name="root" type="tns:ResourceContract" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
9 <element name="contracts" minOccurs="0">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
10 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
11 <sequence>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
12 <element name="contract" maxOccurs="unbounded">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
13 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
14 <complexContent>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
15 <extension base="tns:ResourceContract">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
16 <all>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
17 <element name="modelType" type="tns:ClassName" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
18 </all>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
19 <attribute name="id" type="string" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
20 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
21 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
22 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
23 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
24 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
25 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
26 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
27 <element name="locators" minOccurs="0">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
28 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
29 <sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
30 <element name="locator" maxOccurs="unbounded">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
31 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
32 <complexContent>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
33 <extension base="tns:ResourceLocator">
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
34 <attribute name="name" type="string" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
35 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
36 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
37 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
38 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
39 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
40 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
41 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
42 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
43 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
44 <keyref name="locator-key-ref" refer="tns:locator-key">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
45 <selector xpath=".//tns:response/tns:locatorRef" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
46 <field xpath="@ref" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
47 </keyref>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
48 <key name="locator-key">
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
49 <selector xpath="tns:locators/tns:locator" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
50 <field xpath="@name" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
51 </key>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
52 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
53
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
54 <!-- abstract types -->
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
55 <complexType name="AbstractBinding" abstract="true" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
56 <complexType name="AbstractTransformation" abstract="true" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
57 <complexType name="AbstractResult" abstract="true" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
58
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
59 <complexType name="ResourceContract">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
60 <sequence>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
61 <group ref="tns:RestOperations" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
62 <element name="resource" maxOccurs="unbounded" minOccurs="0"
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
63 type="tns:ChildResourceContract" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
64 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
65 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
66
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
67 <complexType name="ChildResourceContract">
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
68 <sequence>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
69 <choice>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
70 <element name="name" type="string" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
71 <element name="match" type="string" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
72 </choice>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
73 <element name="model" minOccurs="0" type="tns:MethodBinding" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
74 <choice>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
75 <element name="contract">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
76 <complexType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
77 <attribute name="ref" type="string" use="required" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
78 </complexType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
79 </element>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
80 <sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
81 <group ref="tns:RestOperations" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
82 <element name="resource" type="tns:ChildResourceContract"
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
83 minOccurs="0" maxOccurs="unbounded" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
84 </sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
85 </choice>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
86 </sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
87
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
88 </complexType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
89
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
90 <group name="RestOperations">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
91 <sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
92 <element name="get" type="tns:OperationContract" minOccurs="0" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
93 <element name="post" type="tns:OperationContract" minOccurs="0" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
94 <element name="put" type="tns:OperationContract" minOccurs="0" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
95 <element name="delete" type="tns:OperationContract"
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
96 minOccurs="0" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
97 </sequence>
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
98 </group>
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
99
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
100 <complexType name="OperationContract">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
101 <complexContent>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
102 <extension base="tns:MethodBinding">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
103 <sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
104 <element name="response" type="tns:AbstractResult"
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
105 minOccurs="0" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
106 </sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
107 </extension>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
108 </complexContent>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
109 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
110
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
111 <complexType name="MethodBinding">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
112 <sequence>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
113 <element name="var" type="tns:BindingVariable" minOccurs="0"
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
114 maxOccurs="unbounded" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
115 </sequence>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
116 <attribute name="expr" type="string" use="required" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
117 <attribute name="handler" type="string" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
118 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
119
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
120 <complexType name="BindingVariable">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
121 <complexContent>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
122 <extension base="tns:MethodBinding">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
123 <attribute name="name" type="string" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
124 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
125 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
126 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
127
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
128
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
129 <complexType name="transformation">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
130 <attribute name="class" type="string" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
131 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
132
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
133 <complexType name="ResourceLocator">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
134 <sequence>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
135 <element name="var" type="tns:BindingVariable" minOccurs="0"
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
136 maxOccurs="unbounded" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
137 <element name="template" type="string" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
138 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
139 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
140
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
141 <simpleType name="RedirectCodes">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
142 <restriction base="string">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
143 <enumeration value="moved-permanently" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
144 <enumeration value="temporary-redirect" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
145 <enumeration value="see-other" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
146 </restriction>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
147 </simpleType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
148
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
149 <complexType name="RedirectResponse">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
150 <complexContent>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
151 <extension base="tns:AbstractResult">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
152 <choice>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
153 <element name="locator" type="tns:ResourceLocator" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
154 <element name="locatorRef">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
155 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
156 <attribute name="ref" type="string" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
157 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
158 </element>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
159 <element name="status" type="tns:RedirectCodes" minOccurs="0" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
160 </choice>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
161 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
162 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
163 </complexType>
219
sergey
parents: 218
diff changeset
164
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
165 <simpleType name="ClassName">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
166 <restriction base="string">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
167 <pattern value="\w+(::\w+)*" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
168 </restriction>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
169 </simpleType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
170
218
sergey
parents:
diff changeset
171 </schema>