annotate _test/Resources/resources.xsd @ 219:c477f24f1980

sync
author sergey
date Tue, 21 Aug 2012 17:13:47 +0400
parents 358f867712b4
children 5c82c15b25b1
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"?>
219
sergey
parents: 218
diff changeset
2 <schema targetNamespace="http://implab.org/schemas/resources" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://implab.org/schemas/resources">
218
sergey
parents:
diff changeset
3 <element name="resources">
sergey
parents:
diff changeset
4 <complexType>
sergey
parents:
diff changeset
5 <sequence>
sergey
parents:
diff changeset
6 <element name="root" type="tns:restResource"></element>
219
sergey
parents: 218
diff changeset
7 <element name="typeMap" minOccurs="0">
218
sergey
parents:
diff changeset
8 <complexType>
sergey
parents:
diff changeset
9 <sequence>
219
sergey
parents: 218
diff changeset
10 <element name="item" maxOccurs="unbounded">
218
sergey
parents:
diff changeset
11 <complexType>
sergey
parents:
diff changeset
12 <complexContent>
sergey
parents:
diff changeset
13 <extension
sergey
parents:
diff changeset
14 base="tns:restResource">
sergey
parents:
diff changeset
15 <sequence></sequence>
sergey
parents:
diff changeset
16 <attribute
sergey
parents:
diff changeset
17 name="type" type="string">
sergey
parents:
diff changeset
18 </attribute>
sergey
parents:
diff changeset
19 </extension>
sergey
parents:
diff changeset
20 </complexContent>
sergey
parents:
diff changeset
21 </complexType></element>
sergey
parents:
diff changeset
22 </sequence>
sergey
parents:
diff changeset
23 </complexType></element>
sergey
parents:
diff changeset
24 </sequence>
sergey
parents:
diff changeset
25 </complexType>
sergey
parents:
diff changeset
26 </element>
sergey
parents:
diff changeset
27
219
sergey
parents: 218
diff changeset
28 <!-- abstract types -->
sergey
parents: 218
diff changeset
29 <complexType name="abstractBinding" abstract="true"/>
sergey
parents: 218
diff changeset
30 <complexType name="abstractTransformation" abstract="true" />
sergey
parents: 218
diff changeset
31 <complexType name="abstractResult" abstract="true" />
sergey
parents: 218
diff changeset
32
218
sergey
parents:
diff changeset
33 <complexType name="restResource">
sergey
parents:
diff changeset
34 <sequence>
sergey
parents:
diff changeset
35 <element name="get" type="tns:restOperation" minOccurs="0">
sergey
parents:
diff changeset
36 </element>
sergey
parents:
diff changeset
37 <element name="post" type="tns:restOperation" minOccurs="0">
sergey
parents:
diff changeset
38 </element>
sergey
parents:
diff changeset
39 <element name="put" type="tns:restOperation" minOccurs="0">
sergey
parents:
diff changeset
40 </element>
sergey
parents:
diff changeset
41 <element name="delete" type="tns:restOperation" minOccurs="0">
sergey
parents:
diff changeset
42 </element>
sergey
parents:
diff changeset
43 <element name="resource" type="string" maxOccurs="unbounded" minOccurs="0"></element>
sergey
parents:
diff changeset
44 </sequence>
sergey
parents:
diff changeset
45 </complexType>
sergey
parents:
diff changeset
46
sergey
parents:
diff changeset
47 <complexType name="restOperation">
sergey
parents:
diff changeset
48 <sequence>
219
sergey
parents: 218
diff changeset
49 <element ref="tns:abstractBinding"/>
218
sergey
parents:
diff changeset
50 <element name="parameters" type="string"></element>
219
sergey
parents: 218
diff changeset
51 <element ref="tns:abstractResult"/>
218
sergey
parents:
diff changeset
52 </sequence>
sergey
parents:
diff changeset
53 </complexType>
219
sergey
parents: 218
diff changeset
54
sergey
parents: 218
diff changeset
55 <complexType name="methodBinding" >
sergey
parents: 218
diff changeset
56 <complexContent>
sergey
parents: 218
diff changeset
57 <extension base="tns:abstractBinding">
sergey
parents: 218
diff changeset
58 <attribute name="target" type="string" />
sergey
parents: 218
diff changeset
59 <attribute name="invoke" type="string" use="required" />
sergey
parents: 218
diff changeset
60 </extension>
sergey
parents: 218
diff changeset
61 </complexContent>
sergey
parents: 218
diff changeset
62 </complexType>
sergey
parents: 218
diff changeset
63
sergey
parents: 218
diff changeset
64 <complexType name="transformation">
sergey
parents: 218
diff changeset
65 <attribute name="class" type="string" />
sergey
parents: 218
diff changeset
66 </complexType>
sergey
parents: 218
diff changeset
67
sergey
parents: 218
diff changeset
68 <complexType name="resourceLocator">
sergey
parents: 218
diff changeset
69 <sequence>
sergey
parents: 218
diff changeset
70 <element ref="tns:abstractBinding" />
sergey
parents: 218
diff changeset
71 <element name="template" type="string" />
sergey
parents: 218
diff changeset
72 </sequence>
sergey
parents: 218
diff changeset
73 </complexType>
sergey
parents: 218
diff changeset
74
sergey
parents: 218
diff changeset
75
sergey
parents: 218
diff changeset
76
sergey
parents: 218
diff changeset
77
sergey
parents: 218
diff changeset
78 <!-- substitutions -->
sergey
parents: 218
diff changeset
79
sergey
parents: 218
diff changeset
80 <!-- abstract -->
sergey
parents: 218
diff changeset
81 <element name="abstractBinding" type="tns:abstractBinding" abstract="true"/>
sergey
parents: 218
diff changeset
82 <element name="abstractTransfomation" type="tns:abstractTransformation" />
sergey
parents: 218
diff changeset
83 <element name="abstractResult" type="tns:abstractResult" abstract="true" />
sergey
parents: 218
diff changeset
84
sergey
parents: 218
diff changeset
85 <!-- specific -->
sergey
parents: 218
diff changeset
86
sergey
parents: 218
diff changeset
87 <!-- bindings -->
sergey
parents: 218
diff changeset
88 <element name="bind" type="tns:methodBinding" substitutionGroup="tns:abstractBinding"/>
sergey
parents: 218
diff changeset
89
sergey
parents: 218
diff changeset
90 <!-- transformation -->
sergey
parents: 218
diff changeset
91
sergey
parents: 218
diff changeset
92 <!-- result handlers -->
sergey
parents: 218
diff changeset
93 <simpleType name="redirectCodes">
sergey
parents: 218
diff changeset
94 <restriction base="string">
sergey
parents: 218
diff changeset
95 <enumeration value="moved-permanently"/>
sergey
parents: 218
diff changeset
96 <enumeration value="temporary-redirect"/>
sergey
parents: 218
diff changeset
97 <enumeration value="see-other"/>
sergey
parents: 218
diff changeset
98 </restriction>
sergey
parents: 218
diff changeset
99 </simpleType>
sergey
parents: 218
diff changeset
100
sergey
parents: 218
diff changeset
101 <complexType name="redirectResult">
sergey
parents: 218
diff changeset
102 <complexContent>
sergey
parents: 218
diff changeset
103 <extension base="tns:abstractResult">
sergey
parents: 218
diff changeset
104 <sequence>
sergey
parents: 218
diff changeset
105 <element name="locator" type="tns:resourceLocator" />
sergey
parents: 218
diff changeset
106 <element name="status" type="tns:redirectCodes" minOccurs="0"/>
sergey
parents: 218
diff changeset
107 </sequence>
sergey
parents: 218
diff changeset
108 </extension>
sergey
parents: 218
diff changeset
109 </complexContent>
sergey
parents: 218
diff changeset
110 </complexType>
sergey
parents: 218
diff changeset
111
sergey
parents: 218
diff changeset
112 <element name="redirect" type="tns:redirectResult" substitutionGroup="tns:abstractResult" />
sergey
parents: 218
diff changeset
113
218
sergey
parents:
diff changeset
114 </schema>