Mercurial > pub > Impl
comparison _test/Resources/resources.xsd @ 220:5c82c15b25b1
sync, updated schema
author | sergey |
---|---|
date | Thu, 23 Aug 2012 17:44:31 +0400 |
parents | c477f24f1980 |
children | e997e6fbac0b |
comparison
equal
deleted
inserted
replaced
219:c477f24f1980 | 220:5c82c15b25b1 |
---|---|
18 </attribute> | 18 </attribute> |
19 </extension> | 19 </extension> |
20 </complexContent> | 20 </complexContent> |
21 </complexType></element> | 21 </complexType></element> |
22 </sequence> | 22 </sequence> |
23 </complexType></element> | 23 </complexType> |
24 </element> | |
24 </sequence> | 25 </sequence> |
25 </complexType> | 26 </complexType> |
26 </element> | 27 </element> |
27 | 28 |
28 <!-- abstract types --> | 29 <!-- abstract types --> |
30 <complexType name="abstractTransformation" abstract="true" /> | 31 <complexType name="abstractTransformation" abstract="true" /> |
31 <complexType name="abstractResult" abstract="true" /> | 32 <complexType name="abstractResult" abstract="true" /> |
32 | 33 |
33 <complexType name="restResource"> | 34 <complexType name="restResource"> |
34 <sequence> | 35 <sequence> |
35 <element name="get" type="tns:restOperation" minOccurs="0"> | 36 <element name="get" type="tns:restOperation" minOccurs="0"/> |
36 </element> | 37 <element name="post" type="tns:restOperation" minOccurs="0"/> |
37 <element name="post" type="tns:restOperation" minOccurs="0"> | 38 <element name="put" type="tns:restOperation" minOccurs="0"/> |
38 </element> | 39 <element name="delete" type="tns:restOperation" minOccurs="0"/> |
39 <element name="put" type="tns:restOperation" minOccurs="0"> | 40 <element name="resource" type="string" maxOccurs="unbounded" minOccurs="0"/> |
40 </element> | |
41 <element name="delete" type="tns:restOperation" minOccurs="0"> | |
42 </element> | |
43 <element name="resource" type="string" maxOccurs="unbounded" minOccurs="0"></element> | |
44 </sequence> | 41 </sequence> |
45 </complexType> | 42 </complexType> |
46 | 43 |
47 <complexType name="restOperation"> | 44 <complexType name="restOperation"> |
48 <sequence> | 45 <sequence> |
49 <element ref="tns:abstractBinding"/> | 46 <element name="bind" type="tns:methodBinding"/> |
50 <element name="parameters" type="string"></element> | 47 <element name="parameters" type="tns:transformation" minOccurs="0"/> |
51 <element ref="tns:abstractResult"/> | 48 <element name="result" type="tns:abstractResult" minOccurs="0"/> |
52 </sequence> | 49 </sequence> |
53 </complexType> | 50 </complexType> |
54 | 51 |
55 <complexType name="methodBinding" > | 52 <complexType name="methodBinding" > |
53 <sequence> | |
54 <element name="var" type="tns:bindingVariable" minOccurs="0" maxOccurs="unbounded"/> | |
55 </sequence> | |
56 <attribute name="text" type="string" use="required" /> | |
57 </complexType> | |
58 | |
59 <complexType name="bindingVariable"> | |
56 <complexContent> | 60 <complexContent> |
57 <extension base="tns:abstractBinding"> | 61 <extension base="tns:methodBinding"> |
58 <attribute name="target" type="string" /> | 62 <attribute name="name" type="string"/> |
59 <attribute name="invoke" type="string" use="required" /> | |
60 </extension> | 63 </extension> |
61 </complexContent> | 64 </complexContent> |
62 </complexType> | 65 </complexType> |
66 | |
63 | 67 |
64 <complexType name="transformation"> | 68 <complexType name="transformation"> |
65 <attribute name="class" type="string" /> | 69 <attribute name="class" type="string" /> |
66 </complexType> | 70 </complexType> |
67 | 71 |
68 <complexType name="resourceLocator"> | 72 <complexType name="resourceLocator"> |
69 <sequence> | 73 <sequence> |
70 <element ref="tns:abstractBinding" /> | 74 <element name="var" type="tns:bindingVariable" minOccurs="0" maxOccurs="unbounded"/> |
71 <element name="template" type="string" /> | 75 <element name="template" type="string" /> |
72 </sequence> | 76 </sequence> |
73 </complexType> | 77 </complexType> |
74 | 78 |
75 | |
76 | |
77 | |
78 <!-- substitutions --> | |
79 | |
80 <!-- abstract --> | |
81 <element name="abstractBinding" type="tns:abstractBinding" abstract="true"/> | |
82 <element name="abstractTransfomation" type="tns:abstractTransformation" /> | |
83 <element name="abstractResult" type="tns:abstractResult" abstract="true" /> | |
84 | |
85 <!-- specific --> | |
86 | |
87 <!-- bindings --> | |
88 <element name="bind" type="tns:methodBinding" substitutionGroup="tns:abstractBinding"/> | |
89 | |
90 <!-- transformation --> | |
91 | |
92 <!-- result handlers --> | |
93 <simpleType name="redirectCodes"> | 79 <simpleType name="redirectCodes"> |
94 <restriction base="string"> | 80 <restriction base="string"> |
95 <enumeration value="moved-permanently"/> | 81 <enumeration value="moved-permanently"/> |
96 <enumeration value="temporary-redirect"/> | 82 <enumeration value="temporary-redirect"/> |
97 <enumeration value="see-other"/> | 83 <enumeration value="see-other"/> |
106 <element name="status" type="tns:redirectCodes" minOccurs="0"/> | 92 <element name="status" type="tns:redirectCodes" minOccurs="0"/> |
107 </sequence> | 93 </sequence> |
108 </extension> | 94 </extension> |
109 </complexContent> | 95 </complexContent> |
110 </complexType> | 96 </complexType> |
111 | |
112 <element name="redirect" type="tns:redirectResult" substitutionGroup="tns:abstractResult" /> | |
113 | 97 |
114 </schema> | 98 </schema> |