annotate _test/Resources/resources.xsd @ 243:cd2b1f121029

*TTView: fixed template selection based on the model type
author sergey
date Fri, 19 Oct 2012 02:23:15 +0400
parents b6cde007a175
children
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 <attribute name="id" type="string" />
226
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
17 <attribute name="modelType" type="tns:ClassName" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
18 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
19 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
20 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
21 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
22 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
23 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
24 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
25 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
26 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
27 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
28
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
29 <!-- abstract types -->
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
30 <complexType name="AbstractBinding" abstract="true" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
31 <complexType name="AbstractTransformation" abstract="true" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
32 <complexType name="AbstractResult" abstract="true" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
33
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
34 <complexType name="ResourceContract">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
35 <sequence>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
36 <group ref="tns:RestOperations" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
37 <element name="resource" maxOccurs="unbounded" minOccurs="0"
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
38 type="tns:ChildResourceContract" />
221
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
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
42 <complexType name="ChildResourceContract">
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
43 <sequence>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
44 <choice>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
45 <element name="name" type="string" />
226
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
46 <element name="match">
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
47 <complexType>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
48 <simpleContent>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
49 <extension base="string">
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
50 <attribute name="vars" type="tns:VarList"/>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
51 </extension>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
52 </simpleContent>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
53 </complexType>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
54
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
55 </element>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
56 </choice>
226
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
57 <group ref="tns:BindingExpressions"/>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
58 <choice>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
59 <element name="contract">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
60 <complexType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
61 <attribute name="ref" type="string" use="required" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
62 </complexType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
63 </element>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
64 <sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
65 <group ref="tns:RestOperations" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
66 <element name="resource" type="tns:ChildResourceContract"
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
67 minOccurs="0" maxOccurs="unbounded" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
68 </sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
69 </choice>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
70 </sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
71
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
72 </complexType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
73
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
74 <group name="RestOperations">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
75 <sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
76 <element name="get" type="tns:OperationContract" minOccurs="0" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
77 <element name="post" type="tns:OperationContract" minOccurs="0" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
78 <element name="put" type="tns:OperationContract" minOccurs="0" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
79 <element name="delete" type="tns:OperationContract"
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
80 minOccurs="0" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
81 </sequence>
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
82 </group>
226
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
83
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
84 <group name="BindingExpressions">
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
85 <choice>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
86 <element name="bind" type="tns:Binding"/>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
87 <element name="transform" type="tns:Transformation"/>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
88 <element name="value" type="string" />
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
89 </choice>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
90 </group>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
91
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
92 <complexType name="OperationContract">
226
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
93
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
94 <sequence>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
95 <element name="bind" type="tns:Binding" />
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
96 <element name="response" minOccurs="0">
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
97 <complexType>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
98 <choice>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
99 <element name="redirect" type="tns:RedirectResponse" />
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
100 <element name="transform" type="tns:Transformation" />
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
101 </choice>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
102 </complexType>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
103 </element>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
104 </sequence>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
105
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
106 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
107
226
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
108 <complexType name="Binding">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
109 <sequence>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
110 <element name="var" type="tns:BindingVariable" minOccurs="0"
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
111 maxOccurs="unbounded" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
112 </sequence>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
113 <attribute name="expr" type="string" use="required" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
114 <attribute name="handler" type="string" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
115 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
116
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
117 <complexType name="BindingVariable">
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
118 <choice>
226
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
119 <element name="bind" type="tns:Binding" />
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
120 <element name="transform" type="tns:Transformation" />
226
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
121 <element name="value" type="string" />
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
122 </choice>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
123 <attribute name="name" type="tns:IdentifierName" use="required" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
124 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
125
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
126
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
127 <complexType name="Transformation">
226
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
128 <sequence>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
129 <element name="target" type="tns:Binding" minOccurs="0" />
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
130 <element name="transform" type="tns:Transformation"
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
131 minOccurs="0" />
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
132 </sequence>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
133 <attribute name="class" type="tns:ClassName" use="required" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
134 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
135
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
136 <complexType name="ResourceLocator">
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
137 <attribute name="locator" type="string" use="required" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
138 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
139
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
140 <simpleType name="RedirectCodes">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
141 <restriction base="string">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
142 <enumeration value="moved-permanently" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
143 <enumeration value="temporary-redirect" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
144 <enumeration value="see-other" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
145 </restriction>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
146 </simpleType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
147
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
148 <complexType name="RedirectResponse">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
149 <complexContent>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
150 <extension base="tns:AbstractResult">
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
151 <sequence>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
152 <element name="location" type="tns:ResourceLocator" />
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
153 <element name="status" type="tns:RedirectCodes" minOccurs="0" />
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
154 </sequence>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
155 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
156 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
157 </complexType>
219
sergey
parents: 218
diff changeset
158
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
159 <simpleType name="ClassName">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
160 <restriction base="string">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
161 <pattern value="\w+(::\w+)*" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
162 </restriction>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
163 </simpleType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
164
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
165 <simpleType name="IdentifierName">
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
166 <restriction base="string">
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
167 <pattern value="\w+" />
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
168 </restriction>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
169 </simpleType>
226
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
170
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
171 <simpleType name="VarList">
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
172 <restriction base="string">
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
173 <pattern value="(\w+)(\s*,\s*(\w+))*" />
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
174 </restriction>
b6cde007a175 Added resource contract
sergey
parents: 224
diff changeset
175 </simpleType>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
176
218
sergey
parents:
diff changeset
177 </schema>