summaryrefslogtreecommitdiff
path: root/qpid/java/management/client/src/main/java/wsdl/WS-ResourceMetadataDescriptor-CD-01.xsd
blob: 2c5952264b6c60760c990b919157216dba20a002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
<?xml version="1.0" encoding="UTF-8"?>
<!-- 


OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.

OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.

Copyright (C) OASIS Open (2005-2006). All Rights Reserved.

This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English. 

The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns. 

This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.


-->

<xsd:schema 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  xmlns="http://www.w3.org/2001/XMLSchema" 
  xmlns:wsa="http://www.w3.org/2005/08/addressing" 
  xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2" 
  targetNamespace="http://docs.oasis-open.org/wsrf/rmd-1" 
  xmlns:wsrmd="http://docs.oasis-open.org/wsrf/rmd-1"
  elementFormDefault="qualified">

  <xsd:import 
    namespace="http://docs.oasis-open.org/wsrf/rp-2" 
    schemaLocation="WS-ResourceProperties-1_2.xsd" /> 

  <xsd:import 
    namespace="http://www.w3.org/2005/08/addressing" 
    schemaLocation="WS-Addressing-2005_08.xsd" />



<!-- ======================== Utility Types ======================= -->
  <xsd:simpleType name="PairsOfURIType">
    <xsd:list itemType="xsd:anyURI" />
  </xsd:simpleType>

<!-- ================  PortType Attribute Extensions ================ -->
  <xsd:attribute name="Descriptor" type="xsd:QName" />
   
  <xsd:attribute name="DescriptorLocation" type="xsd:anyURI" />

<!-- ================= Documentation Component ==================== -->
  <xsd:complexType name="DocumentationType" mixed="true" >
    <xsd:sequence>
      <xsd:any namespace="##any" 
           minOccurs="0" maxOccurs="unbounded" 
           processContents="lax" />
    </xsd:sequence>
    <xsd:anyAttribute/>
  </xsd:complexType>

  <xsd:complexType name="DocumentedType">
    <xsd:sequence>
      <xsd:element name="documentation" type="wsrmd:DocumentationType"
               minOccurs="0" maxOccurs="1" />
    </xsd:sequence>
  </xsd:complexType>
    
<!-- ================== Definitions Component ===================== -->
<!--
  <Definitions 
      targetNamespace="xsd:anyURI"
      {anyAttribute}* > 

  <documentation />? 
  <MetadataDescriptor /> *
  {any}*

</Definitions>
 -->
 
  <xsd:complexType name= "DefinitionsType" >
    <xsd:complexContent>
      <xsd:extension base="wsrmd:DocumentedType">
        <xsd:sequence>
          <xsd:element ref="wsrmd:MetadataDescriptor" 
                      minOccurs="0" maxOccurs="unbounded" />
          <xsd:any namespace="##other" 
               minOccurs="0" maxOccurs="unbounded"
               processContents="lax" />
        </xsd:sequence>
        <xsd:attribute name="targetNamespace" 
                       type="xsd:anyURI" use="required"/>
        <xsd:anyAttribute namespace="##other" processContents="lax"/>
      </xsd:extension>
    </xsd:complexContent>    
  </xsd:complexType> 
  
  <xsd:element name="Definitions" type="wsrmd:DefinitionsType" >
    <xsd:key name="MetadataDescriptor">
      <xsd:annotation>
        <xsd:documentation>
          To form a QName, the name of any MetadataDescriptor must be 
          unique within a Definitions element.
        </xsd:documentation>
      </xsd:annotation>
      <xsd:selector xpath="wsrmd:MetadataDescriptor" /> 
      <xsd:field xpath="@name" /> 
    </xsd:key>
  </xsd:element>

<!-- =============== MetadataDescriptor Component =================== -->
<!--
<MetadataDescriptor 
      name="xsd:NCName"
      interface="xsd:QName"
      wsdlLocation="list of xsd:anyURI"?
      {anyAttribute}* >

  <documentation />?
  <Property /> *
  {any}*

</MetadataDescriptor>
-->

  <xsd:complexType name= "MetadataDescriptorType" >
    <xsd:complexContent>
      <xsd:extension base="wsrmd:DocumentedType">
        <xsd:sequence>
          <xsd:element ref="wsrmd:Property" 
                       minOccurs="0" maxOccurs="unbounded" />
          <xsd:any namespace="##other" 
               minOccurs="0" maxOccurs="unbounded"
               processContents="lax" />
        </xsd:sequence>
        <xsd:attribute name="name" 
                       type="xsd:NCName" use="required"/>
        <xsd:attribute name="interface" 
                       type="xsd:QName" use="required"/>
        <xsd:attribute name="wsdlLocation" 
                       type="wsrmd:PairsOfURIType" />
        <xsd:anyAttribute namespace="##other" processContents="lax"/>
      </xsd:extension>
    </xsd:complexContent>    
  </xsd:complexType> 
  
  <xsd:element name="MetadataDescriptor" 
               type="wsrmd:MetadataDescriptorType" />  
  
<!-- ==================== Property Component ====================== -->
<!--
<Property 
      name="xsd:QName"
      mutability="[constant|appendable|mutable]" ?
      modifiability="[read-only|read-write]" ?
      subscribability="xs:boolean" ?
      {anyAttribute}* >

  <documentation />?
  [ <ValidValues> {any}* </ValidValues> |
    <ValidValueRange lowerBound=’xsd:simpleType’
                     upperBound=’xsd:simpleType’>
    </ValidValueRange> ] ?
  <StaticValues> {any}* </StaticValues> ?

  {any} *

</Property>
-->
  <xsd:complexType name= "PropertyType" >
    <xsd:complexContent>
      <xsd:extension base="wsrmd:DocumentedType">
        <xsd:sequence>
          <xsd:choice>
            <xsd:element ref="wsrmd:ValidValues" 
                         minOccurs="0" maxOccurs="1" />
            <xsd:element ref="wsrmd:ValidValueRange"
                         minOccurs="0" maxOccurs="1" />
          </xsd:choice>
          <xsd:element ref="wsrmd:StaticValues" 
                       minOccurs="0" maxOccurs="1" />
          <xsd:any namespace="##other" 
                   minOccurs="0" maxOccurs="unbounded"
                   processContents="lax" />
        </xsd:sequence>
        <xsd:attribute name="name" 
                       type="xsd:QName" use="required"/>
        <xsd:attribute name="mutability" 
                       type="wsrmd:MutabilityType" />
        <xsd:attribute name="modifiability" 
                       type="wsrmd:ModifiabilityType" />
        <xsd:attribute name="subscribability" type="xsd:boolean" default="false" />
        <xsd:anyAttribute namespace="##other" processContents="lax"/>
      </xsd:extension>
    </xsd:complexContent>    
  </xsd:complexType> 

  <xsd:element name="Property" type="wsrmd:PropertyType" />
    
  <xsd:simpleType name="MutabilityType">
    <xsd:restriction base="xsd:string" >
      <xsd:enumeration value="constant" />
      <xsd:enumeration value="appendable" />
      <xsd:enumeration value="mutable" />
    </xsd:restriction>
  </xsd:simpleType>
  
  <xsd:simpleType name="ModifiabilityType">
    <xsd:restriction base="xsd:string" >
      <xsd:enumeration value="read-only" />
      <xsd:enumeration value="read-write" />
    </xsd:restriction>
  </xsd:simpleType>

<!-- ================= Valid Values Component ===================== -->
<!--
<ValidValues 
      {anyAttribute}* >
  <documentation />?
  {any}*
</ValidValues>
-->
  <xsd:complexType name= "ValidValuesType" mixed="true">
    <xsd:sequence>
      <xsd:element name="documentation" type="wsrmd:DocumentationType"
                   minOccurs="0" maxOccurs="1" />
  
      <xsd:any namespace="##other" 
               minOccurs="0" maxOccurs="unbounded"
               processContents="lax" />
    </xsd:sequence>
    <xsd:anyAttribute namespace="##other" processContents="lax"/>
  </xsd:complexType>

  <xsd:element name="ValidValues" type="wsrmd:ValidValuesType" />

<!-- ================= Valid Range Component ===================== -->
<!--
<ValidValueRange 
      lowerBound="xs:anySimpleType" ? upperBound="xs:anySimpleType" ? 
      {anyAttribute}* >
  <documentation />?
  {any}*
</ValidValueRange>
-->
  <xsd:complexType name= "ValidValueRangeType" mixed="true">
    <xsd:sequence>
      <xsd:element name="documentation" type="wsrmd:DocumentationType"
                   minOccurs="0" maxOccurs="1" />
  
      <xsd:any namespace="##other" 
               minOccurs="0" maxOccurs="unbounded"
               processContents="lax" />
    </xsd:sequence>
    <xsd:attribute name="lowerBound" type="xsd:anySimpleType" />
    <xsd:attribute name="upperBound" type="xsd:anySimpleType" />
    <xsd:anyAttribute namespace="##other" processContents="lax"/>
  </xsd:complexType>   

  <xsd:element name="ValidValueRange" type="wsrmd:ValidValueRangeType" />

<!-- ================ Static Values Component ===================== -->
<!--
<StaticValues 
      {anyAttribute}* >
  <documentation />?
  {any}*
</StaticValues>
-->
  <xsd:complexType name= "StaticValuesType" mixed="true">
    <xsd:sequence>
      <xsd:element name="documentation" type="wsrmd:DocumentationType"
                   minOccurs="0" maxOccurs="1" />
  
      <xsd:any namespace="##other" 
               minOccurs="0" maxOccurs="unbounded"
               processContents="lax" />
    </xsd:sequence>
    <xsd:anyAttribute namespace="##other" processContents="lax"/>
  </xsd:complexType> 
  
  <xsd:element name="StaticValues" type="wsrmd:StaticValuesType" />

<!-- ================ Initial Values Component ==================== -->
<!--
<InitialValues 
      {anyAttribute}* >
  <documentation />?
  {any}*
</InitialValues>
-->
  <xsd:complexType name= "InitialValuesType" mixed="true">
    <xsd:sequence>
      <xsd:element name="documentation" type="wsrmd:DocumentationType"
                   minOccurs="0" maxOccurs="1" />
  
      <xsd:any namespace="##other" 
               minOccurs="0" maxOccurs="unbounded"
               processContents="lax" />
    </xsd:sequence>
    <xsd:anyAttribute namespace="##other" processContents="lax"/>
  </xsd:complexType> 
  
  <xsd:element name="InitialValues" type="wsrmd:InitialValuesType" />

    
<!-- =========== MetadataDescriptorReference RP GED =============== -->
  <xsd:complexType name="MetadataDescriptorReferenceType">
    <xsd:complexContent>  
      <xsd:extension base="wsa:EndpointReferenceType"/>
    </xsd:complexContent>    
  </xsd:complexType> 

  <xsd:element name="MetadataDescriptorReference" 
               type="wsrmd:MetadataDescriptorReferenceType" />

<!-- 

Metadata Resource RP Doc 

This defines one property - MetadataDescriptor - which must have a cardinality of one.

-->

  <xsd:element name="MetadataResourceRP" type="wsrmd:DefinitionsType"/>

</xsd:schema>