CDT-container-v1_0_0.xsd 5.25 KB
Newer Older
PeterNiblett's avatar
PeterNiblett committed
1
<?xml version="1.0" encoding="UTF-8"?>
Peter Niblett's avatar
Peter Niblett committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<!-- 
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. 
© 2015, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TTA, TTC). All rights reserved.

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.

-->
PeterNiblett's avatar
PeterNiblett committed
26 27 28
	
<xs:schema targetNamespace="http://www.onem2m.org/xml/protocols" xmlns:m2m="http://www.onem2m.org/xml/protocols"
	elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
Peter Niblett's avatar
Peter Niblett committed
29 30 31
	<xs:include schemaLocation="CDT-commonTypes-v1_0_0.xsd" />
	<xs:include schemaLocation="CDT-contentInstance-v1_0_0.xsd" />
	<xs:include schemaLocation="CDT-subscription-v1_0_0.xsd" />
PeterNiblett's avatar
PeterNiblett committed
32 33 34 35 36 37

	<xs:element name="container">
		<xs:complexType>
			<xs:complexContent>
				<xs:extension base="m2m:announceableResource">
					<xs:sequence>
38
						<!-- Common Attribute, specific to <container>, <contentInstance>, <request> and <delivery> resources -->
PeterNiblett's avatar
PeterNiblett committed
39
						<xs:element name="stateTag" type="xs:nonNegativeInteger" />
40
						<!-- Resource Specific Attributes -->
PeterNiblett's avatar
PeterNiblett committed
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
						<xs:element name="creator" type="m2m:ID" />
						<xs:element name="maxNrOfInstances" type="xs:nonNegativeInteger" minOccurs="0" />
						<xs:element name="maxByteSize" type="xs:nonNegativeInteger" minOccurs="0" />
						<xs:element name="maxInstanceAge" type="xs:nonNegativeInteger" minOccurs="0" />
						<xs:element name="currentNrOfInstances" type="xs:nonNegativeInteger" />
						<xs:element name="currentByteSize" type="xs:nonNegativeInteger" />
						<xs:element name="locationID" type="xs:anyURI" minOccurs="0" />
						<xs:element name="ontologyRef" type="xs:anyURI" minOccurs="0" />

						<!-- Child Resources -->
						<xs:element name="latest" type="xs:anyURI" />
						<xs:element name="oldest" type="xs:anyURI" />
						<xs:choice minOccurs="0" maxOccurs="1">
							<xs:element name="childResource" type="m2m:childResourceRef" minOccurs="1" maxOccurs="unbounded" />
							<xs:choice minOccurs="1" maxOccurs="unbounded">
								<xs:element ref="m2m:contentInstance" />
								<xs:element ref="m2m:container" />
								<xs:element ref="m2m:subscription" />
							</xs:choice>
						</xs:choice>

					</xs:sequence>
				</xs:extension>
			</xs:complexContent>
		</xs:complexType>
	</xs:element>

	<xs:element name="containerAnnc">
		<xs:complexType>
			<xs:complexContent>
				<xs:extension base="m2m:announcedResource">
					<xs:sequence>
73
						<!-- Common Attribute, specific to <container>, <contentInstance>, <request> and <delivery> resources -->
PeterNiblett's avatar
PeterNiblett committed
74
						<xs:element name="stateTag" type="xs:nonNegativeInteger" />
75
						<!-- Resource Specific Attributes -->
PeterNiblett's avatar
PeterNiblett committed
76 77 78 79 80 81 82 83 84 85 86 87 88
						<xs:element name="maxNrOfInstances" type="xs:nonNegativeInteger" minOccurs="0" />
						<xs:element name="maxByteSize" type="xs:nonNegativeInteger" minOccurs="0" />
						<xs:element name="maxInstanceAge" type="xs:nonNegativeInteger" minOccurs="0" />
						<xs:element name="currentNrOfInstances" type="xs:nonNegativeInteger" />
						<xs:element name="currentByteSize" type="xs:nonNegativeInteger" />
						<xs:element name="locationID" type="xs:anyURI" minOccurs="0" />
						<xs:element name="ontologyRef" type="xs:anyURI" minOccurs="0" />

						<!-- Child Resources -->
						<xs:choice minOccurs="0" maxOccurs="1">
							<xs:element name="childResource" type="m2m:childResourceRef" minOccurs="1" maxOccurs="unbounded" />
							<xs:choice minOccurs="1" maxOccurs="unbounded">
								<xs:element ref="m2m:contentInstance" />
89
								<xs:element ref="m2m:contentInstanceAnnc" />
PeterNiblett's avatar
PeterNiblett committed
90 91
								<xs:element ref="m2m:container" />
								<xs:element ref="m2m:containerAnnc" />
92
								<xs:element ref="m2m:subscription" />
PeterNiblett's avatar
PeterNiblett committed
93 94 95 96 97 98 99
							</xs:choice>
						</xs:choice>
					</xs:sequence>
				</xs:extension>
			</xs:complexContent>
		</xs:complexType>
	</xs:element>
Peter Niblett's avatar
Peter Niblett committed
100
</xs:schema>