annotate _test/Resources/resources.xsd @ 225:a1e868b0fba9

Bindings concept in progress
author sergey
date Fri, 31 Aug 2012 16:41:18 +0400
parents e6c050db7d98
children b6cde007a175
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" />
224
e6c050db7d98 resources schema update
sergey
parents: 223
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" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
46 <element name="match" type="string" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
47 </choice>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
48 <element name="model" minOccurs="0" type="tns:MethodBinding" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
49 <choice>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
50 <element name="contract">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
51 <complexType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
52 <attribute name="ref" type="string" use="required" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
53 </complexType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
54 </element>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
55 <sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
56 <group ref="tns:RestOperations" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
57 <element name="resource" type="tns:ChildResourceContract"
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
58 minOccurs="0" maxOccurs="unbounded" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
59 </sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
60 </choice>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
61 </sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
62
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
63 </complexType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
64
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
65 <group name="RestOperations">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
66 <sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
67 <element name="get" type="tns:OperationContract" minOccurs="0" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
68 <element name="post" type="tns:OperationContract" minOccurs="0" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
69 <element name="put" type="tns:OperationContract" minOccurs="0" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
70 <element name="delete" type="tns:OperationContract"
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
71 minOccurs="0" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
72 </sequence>
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
73 </group>
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
74
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
75 <complexType name="OperationContract">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
76 <complexContent>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
77 <extension base="tns:MethodBinding">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
78 <sequence>
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
79 <element name="response" minOccurs="0">
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
80 <complexType>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
81 <choice>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
82 <element name="redirect" type="tns:RedirectResponse" />
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
83 <element name="transform" type="tns:Transformation"/>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
84 </choice>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
85 </complexType>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
86 </element>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
87 </sequence>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
88 </extension>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
89 </complexContent>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
90 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
91
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
92 <complexType name="MethodBinding">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
93 <sequence>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
94 <element name="var" type="tns:BindingVariable" minOccurs="0"
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
95 maxOccurs="unbounded" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
96 </sequence>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
97 <attribute name="expr" type="string" use="required" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
98 <attribute name="handler" type="string" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
99 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
100
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
101 <complexType name="BindingVariable">
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
102 <choice>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
103 <element name="bind" type="tns:MethodBinding" />
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
104 <element name="transform" type="tns:Transformation" />
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
105 </choice>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
106 <attribute name="name" type="tns:IdentifierName" use="required" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
107 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
108
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
109
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
110 <complexType name="Transformation">
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
111 <sequence>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
112 <element name="target" type="tns:MethodBinding" minOccurs="0"/>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
113 <element name="transform" type="tns:Transformation" minOccurs="0"/>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
114 </sequence>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
115 <attribute name="class" type="tns:ClassName" use="required" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
116 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
117
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
118 <complexType name="ResourceLocator">
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
119 <attribute name="locator" type="string" use="required" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
120 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
121
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
122 <simpleType name="RedirectCodes">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
123 <restriction base="string">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
124 <enumeration value="moved-permanently" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
125 <enumeration value="temporary-redirect" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
126 <enumeration value="see-other" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
127 </restriction>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
128 </simpleType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
129
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
130 <complexType name="RedirectResponse">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
131 <complexContent>
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
132 <extension base="tns:AbstractResult">
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
133 <sequence>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
134 <element name="location" type="tns:ResourceLocator" />
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
135 <element name="status" type="tns:RedirectCodes" minOccurs="0" />
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
136 </sequence>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
137 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
138 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
139 </complexType>
219
sergey
parents: 218
diff changeset
140
223
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
141 <simpleType name="ClassName">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
142 <restriction base="string">
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
143 <pattern value="\w+(::\w+)*" />
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
144 </restriction>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
145 </simpleType>
edf011437be8 updated resources schema
sergey
parents: 222
diff changeset
146
224
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
147 <simpleType name="IdentifierName">
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
148 <restriction base="string">
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
149 <pattern value="\w+" />
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
150 </restriction>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
151 </simpleType>
e6c050db7d98 resources schema update
sergey
parents: 223
diff changeset
152
218
sergey
parents:
diff changeset
153 </schema>