CDT-group-v1_0_0.xsd 5.12 KB
Newer Older
PeterNiblett's avatar
PeterNiblett committed
1 2 3 4 5 6 7 8
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
Copyright Notification

The oneM2M Partners authorize you to copy this document, provided that you retain all copyright and other proprietary notices 
contained in the original materials on any copies of the materials and that you comply strictly with these terms. 
This copyright permission does not constitute an endorsement of the products or services, nor does it encompass the granting of 
any patent rights. The oneM2M Partners assume no responsibility for errors or omissions in this document. 
Peter Niblett's avatar
Peter Niblett committed
9
© 2015, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TTA, TTC). All rights reserved.
PeterNiblett's avatar
PeterNiblett committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

Notice of Disclaimer & Limitation of Liability 

The information provided in this document is directed solely to professionals who have the appropriate degree of experience to understand 
and interpret its contents in accordance with generally accepted engineering or other professional standards and applicable regulations. 
No recommendation as to products or vendors is made or should be implied. 

NO REPRESENTATION OR WARRANTY IS MADE THAT THE INFORMATION IS TECHNICALLY ACCURATE OR SUFFICIENT OR CONFORMS TO ANY STATUTE, 
GOVERNMENTAL RULE OR REGULATION, AND FURTHER, NO REPRESENTATION OR WARRANTY IS MADE OF MERCHANTABILITY OR FITNESS FOR ANY 
PARTICULAR PURPOSE OR AGAINST INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS. 
NO oneM2M PARTNER TYPE 1 SHALL BE LIABLE, BEYOND THE AMOUNT OF ANY SUM RECEIVED IN PAYMENT BY THAT PARTNER FOR THIS DOCUMENT, WITH RESPECT TO 
ANY CLAIM, AND IN NO EVENT SHALL oneM2M BE LIABLE FOR LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES. 
oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PROVIDED IN THIS DOCUMENT IS AT THE RISK OF THE USER.

-->

<xs:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.onem2m.org/xml/protocols"
	xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">

Peter Niblett's avatar
Peter Niblett committed
30 31
	<xs:include schemaLocation="CDT-commonTypes-v1_0_0.xsd" />
	<xs:include schemaLocation="CDT-subscription-v1_0_0.xsd" />
PeterNiblett's avatar
PeterNiblett committed
32 33 34 35 36 37 38

	<xs:element name="group">
		<xs:complexType>
			<xs:complexContent>
				<!-- Inherit common attributes for announceable Resources -->
				<xs:extension base="m2m:announceableResource">
					<!-- Resource Specific Attributes -->
Peter Niblett's avatar
Peter Niblett committed
39
					<xs:sequence>					
40
                        <xs:element name="creator" type="m2m:ID" minOccurs="0" />					
PeterNiblett's avatar
PeterNiblett committed
41
						<xs:element name="memberType" type="m2m:memberType" />
Peter Niblett's avatar
Peter Niblett committed
42
						<!-- TODO: data type xs:integer is used in TS-0004 for currentNrOfMembers and maxNrOfMembers (TS-0004 to be corrected) -->
PeterNiblett's avatar
PeterNiblett committed
43 44
						<xs:element name="currentNrOfMembers" type="xs:nonNegativeInteger" />
						<xs:element name="maxNrOfMembers" type="xs:nonNegativeInteger" />
Peter Niblett's avatar
Peter Niblett committed
45
						<xs:element name="memberIDs" type="m2m:listOfURIs" />
PeterNiblett's avatar
PeterNiblett committed
46 47 48 49
						<xs:element name="membersAccessControlPolicyIDs" type="m2m:listOfURIs" minOccurs="0" />
						<xs:element name="memberTypeValidated" type="xs:boolean" />
						<xs:element name="consistencyStrategy" type="m2m:consistencyStrategy" minOccurs="0" />
						<xs:element name="groupName" type="xs:string" minOccurs="0" />
Peter Niblett's avatar
Peter Niblett committed
50
						
PeterNiblett's avatar
PeterNiblett committed
51
						<!-- Child Resources -->
Peter Niblett's avatar
Peter Niblett committed
52
						<xs:element name="fanOutPoint" type="xs:anyURI" />
PeterNiblett's avatar
PeterNiblett committed
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72

						<xs:choice minOccurs="0" maxOccurs="1">
							<xs:element name="childResource" type="m2m:childResourceRef" maxOccurs="unbounded" />
							<xs:element ref="m2m:subscription" maxOccurs="unbounded" />
						</xs:choice>
					</xs:sequence>
				</xs:extension>
			</xs:complexContent>
		</xs:complexType>
	</xs:element>

	<xs:element name="groupAnnc">
		<xs:complexType>
			<xs:complexContent>
				<!-- Inherit common attributes for announced Resources -->
				<xs:extension base="m2m:announcedResource">
					<!-- Resource Specific Attributes -->
					<xs:sequence>
						<xs:element name="memberType" type="m2m:memberType" minOccurs="0" />
						<xs:element name="currentNrOfMembers" type="xs:nonNegativeInteger" minOccurs="0" />
Peter Niblett's avatar
Peter Niblett committed
73
						<!-- TODO: data type xs:integer is used in TS-0004 for currentNrOfMembers and maxNrOfMembers (TS-0004 to be corrected) -->
PeterNiblett's avatar
PeterNiblett committed
74
						<xs:element name="maxNrOfMembers" type="xs:nonNegativeInteger" minOccurs="0" />
Peter Niblett's avatar
Peter Niblett committed
75
						<xs:element name="memberIDs" type="m2m:listOfURIs" minOccurs="0" />
PeterNiblett's avatar
PeterNiblett committed
76 77 78 79
						<xs:element name="membersAccessControlPolicyIDs" type="m2m:listOfURIs" minOccurs="0" />
						<xs:element name="memberTypeValidated" type="xs:boolean" minOccurs="0" />
						<xs:element name="consistencyStrategy" type="m2m:consistencyStrategy" minOccurs="0" />
						<xs:element name="groupName" type="xs:string" minOccurs="0" />
Peter Niblett's avatar
Peter Niblett committed
80 81 82 83 84 85 86
						
					    <!-- Child Resources -->
     
                        <xs:choice minOccurs="0" maxOccurs="1">
                            <xs:element name="childResource" type="m2m:childResourceRef" maxOccurs="unbounded" />
                            <xs:element ref="m2m:subscription" maxOccurs="unbounded" />
                        </xs:choice>
PeterNiblett's avatar
PeterNiblett committed
87 88 89 90 91 92
					</xs:sequence>
				</xs:extension>
			</xs:complexContent>
		</xs:complexType>
	</xs:element>
</xs:schema>