CDT-notification-v0_8_0.xsd 4.79 KB
Newer Older
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
Copyright Notification

No part of this document may be reproduced, in an electronic retrieval system or otherwise, except as authorized by written permission.
The copyright and the foregoing restriction extend to reproduction in all media.
© 2014, 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.

-->
<xs:schema xmlns="http://www.w3.org/2001/XMLSchema"
        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">
        <xs:include schemaLocation="CDT-commonTypes-v0_8_0.xsd"/>
28
        <xs:include schemaLocation="CDT-responsePrimitive-v0_8_0.xsd"/>
29 30 31 32 33 34 35 36 37

        <!--  TODO: This "notification data object" does not comply (and does not need to comply) with the    
              generic <resourceType> specification conventions.  One and only one instance of this data object is included
              into the Content parameter of a Notify request primitive. However, the data object may include information, 
              associated with one or more notification events. Do we need to differentiate singleNotification from 
              aggregatedNotification? Probably not. Then the below top-level structure  can be simplified to represent simply
              an unbounded sequence of singleNotification elements only.
              We need to add into TS-0004 information which corresponds to the <resourceType> tables shown in TS-0001. 
              -->
38 39 40 41
        <xs:element name="notification" type="m2m:notification" />      

        <xs:element name="aggregatedNotification" type="m2m:aggregatedNotification" />

42 43
        <xs:complexType name="aggregatedNotification">
                <xs:sequence>
44
                        <xs:element name="notification" type="m2m:notification" minOccurs="0" maxOccurs="unbounded"/>
45 46 47
                </xs:sequence>
        </xs:complexType>

48
        <xs:complexType name="notification">
49
                <xs:sequence>
Wolfgang Granzow's avatar
Wolfgang Granzow committed
50 51 52
                        <xs:element name="notificationEvent" minOccurs="0">
                            <xs:complexType >
                                <xs:sequence>
Wolfgang Granzow's avatar
Wolfgang Granzow committed
53 54 55 56 57 58 59 60 61 62
                                      <xs:element name="representation" type="xs:anyType" minOccurs="0"/>
                                      <xs:element name="resourceStatus" type="m2m:resourceStatus" minOccurs="0"/>
                                      <xs:element name="operationMonitor" minOccurs="0">
                                          <xs:complexType>
                                               <xs:sequence>
                                                   <xs:element name="operation" type="m2m:operation" minOccurs="0"/>
                                                   <xs:element name="originator" type="m2m:ID" minOccurs="0"/>
                                               </xs:sequence>
                                         </xs:complexType>
                                      </xs:element>
Wolfgang Granzow's avatar
Wolfgang Granzow committed
63 64
                                </xs:sequence>
                            </xs:complexType>
Wolfgang Granzow's avatar
Wolfgang Granzow committed
65
                        </xs:element>                      
66 67 68 69 70 71 72 73 74
                        <xs:element name="verificationRequest" type="xs:boolean" minOccurs="0"/>
                        <xs:element name="subscriptionDeletion" type="xs:boolean" minOccurs="0"/>
                        <xs:element name="subscriptionReference" type="xs:anyURI" minOccurs="0"/>
                        <xs:element name="creator" type="m2m:ID" minOccurs="0"/>
                        <xs:element name="notificationForwardingURI" type="xs:anyURI" minOccurs="0"/>
                </xs:sequence>
        </xs:complexType>

</xs:schema>