|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<!-- |
| 4 | +
|
| 5 | +LWM2M XML Schema - LWM2M Editor Schema |
| 6 | + version - 1.1 |
| 7 | + date - 2018-07-10 |
| 8 | +
|
| 9 | +FILE INFORMATION |
| 10 | +
|
| 11 | + Public Reachable Information |
| 12 | + Path: http://www.openmobilealliance.org/tech/profiles |
| 13 | + Name: LWM2M-v1_1.xsd |
| 14 | +
|
| 15 | +NORMATIVE INFORMATION |
| 16 | +
|
| 17 | + Information about this file can be found in the LWM2M online editor |
| 18 | +
|
| 19 | + This is available at http://www.openmobilealliance.org/ |
| 20 | +
|
| 21 | + Send comments to https://github.com/OpenMobileAlliance/OMA_LwM2M_for_Developers/issues |
| 22 | +
|
| 23 | +CHANGE HISTORY |
| 24 | +
|
| 25 | +21112013 First version |
| 26 | +06082015 Bug Fix to correct mismatch |
| 27 | +18022016 Legal Disclaimer updated from template OMA-TEMPLATE-SUP_XSD_example-20160218-I |
| 28 | +24032016 Changed "xs:unsignedshort" to "xs:unsignedShort" |
| 29 | +25052016 Incorporated OMA-DM-LightweightM2M-2016-0066R01-INP_CR_Update_LWM2M_xsd |
| 30 | +14012017 Introduction of two new elements: LWM2MObject and ObjectVersion |
| 31 | +09022018 Introduction of two new types: "CoreLnk" and "Unsigned Integer" |
| 32 | +12062018 Prepare for publication |
| 33 | +10072018 Prepare for Final Approval |
| 34 | +
|
| 35 | +LEGAL DISCLAIMER |
| 36 | +
|
| 37 | + Copyright 2018 Open Mobile Alliance Ltd. All rights reserved. |
| 38 | +
|
| 39 | + Redistribution and use in source and binary forms, with or without |
| 40 | + modification, are permitted provided that the following conditions |
| 41 | + are met: |
| 42 | +
|
| 43 | + 1. Redistributions of source code must retain the above copyright |
| 44 | + notice, this list of conditions and the following disclaimer. |
| 45 | + 2. Redistributions in binary form must reproduce the above copyright |
| 46 | + notice, this list of conditions and the following disclaimer in the |
| 47 | + documentation and/or other materials provided with the distribution. |
| 48 | + 3. Neither the name of the copyright holder nor the names of its |
| 49 | + contributors may be used to endorse or promote products derived |
| 50 | + from this software without specific prior written permission. |
| 51 | +
|
| 52 | + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 53 | + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 54 | + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 55 | + FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
| 56 | + COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 57 | + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| 58 | + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 59 | + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 60 | + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 61 | + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
| 62 | + ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 63 | + POSSIBILITY OF SUCH DAMAGE. |
| 64 | +
|
| 65 | + The above license is used as a license under copyright only. Please |
| 66 | + reference the OMA IPR Policy for patent licensing terms: |
| 67 | + http://www.openmobilealliance.org/ipr.html |
| 68 | +
|
| 69 | +--> |
| 70 | + |
| 71 | +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
| 72 | + <xs:element name="LWM2M"> |
| 73 | + <xs:complexType> |
| 74 | + <xs:sequence> |
| 75 | + <xs:element minOccurs="1" maxOccurs="unbounded" name="Object"> |
| 76 | + <xs:complexType> |
| 77 | + <xs:sequence> |
| 78 | + <xs:element name="Name" type="xs:string" /> |
| 79 | + <xs:element name="Description1" type="xs:string" /> |
| 80 | + <xs:element name="ObjectID" type="xs:unsignedShort" /> |
| 81 | + <xs:element name="ObjectURN" type="xs:string" /> |
| 82 | + <xs:element name="LWM2MVersion" type="xs:string" minOccurs="0"/> |
| 83 | + <xs:element name="ObjectVersion" type="xs:string" minOccurs="0"/> |
| 84 | + <xs:element name="MultipleInstances" > |
| 85 | + <xs:simpleType> |
| 86 | + <xs:restriction base="xs:string"> |
| 87 | + <xs:enumeration value="Multiple"/> |
| 88 | + <xs:enumeration value="Single"/> |
| 89 | + </xs:restriction> |
| 90 | + </xs:simpleType> |
| 91 | + </xs:element> |
| 92 | + <xs:element name="Mandatory" > |
| 93 | + <xs:simpleType> |
| 94 | + <xs:restriction base="xs:string"> |
| 95 | + <xs:enumeration value="Mandatory"/> |
| 96 | + <xs:enumeration value="Optional"/> |
| 97 | + </xs:restriction> |
| 98 | + </xs:simpleType> |
| 99 | + </xs:element> |
| 100 | + <xs:element name="Resources"> |
| 101 | + <xs:complexType> |
| 102 | + <xs:sequence> |
| 103 | + <xs:element maxOccurs="unbounded" name="Item"> |
| 104 | + <xs:complexType> |
| 105 | + <xs:sequence> |
| 106 | + <xs:element name="Name" type="xs:string" /> |
| 107 | + <xs:element name="Operations" > |
| 108 | + <xs:simpleType> |
| 109 | + <xs:restriction base="xs:string"> |
| 110 | + <xs:enumeration value="R"/> |
| 111 | + <xs:enumeration value="W"/> |
| 112 | + <xs:enumeration value="RW"/> |
| 113 | + <xs:enumeration value="E"/> |
| 114 | + <xs:enumeration value=""/> |
| 115 | + </xs:restriction> |
| 116 | + </xs:simpleType> |
| 117 | + </xs:element> |
| 118 | + <xs:element name="MultipleInstances" > |
| 119 | + <xs:simpleType> |
| 120 | + <xs:restriction base="xs:string"> |
| 121 | + <xs:enumeration value="Multiple"/> |
| 122 | + <xs:enumeration value="Single"/> |
| 123 | + </xs:restriction> |
| 124 | + </xs:simpleType> |
| 125 | + </xs:element> |
| 126 | + <xs:element name="Mandatory" > |
| 127 | + <xs:simpleType> |
| 128 | + <xs:restriction base="xs:string"> |
| 129 | + <xs:enumeration value="Mandatory"/> |
| 130 | + <xs:enumeration value="Optional"/> |
| 131 | + </xs:restriction> |
| 132 | + </xs:simpleType> |
| 133 | + </xs:element> |
| 134 | + <xs:element name="Type" > |
| 135 | + <xs:simpleType> |
| 136 | + <xs:restriction base="xs:string"> |
| 137 | + <xs:enumeration value="String"/> |
| 138 | + <xs:enumeration value="Integer"/> |
| 139 | + <xs:enumeration value="Float"/> |
| 140 | + <xs:enumeration value="Boolean"/> |
| 141 | + <xs:enumeration value="Opaque"/> |
| 142 | + <xs:enumeration value="Time"/> |
| 143 | + <xs:enumeration value="Objlnk"/> |
| 144 | + <xs:enumeration value="Unsigned Integer"/> |
| 145 | + <xs:enumeration value="Corelnk"/> |
| 146 | + <xs:enumeration value=""/> |
| 147 | + </xs:restriction> |
| 148 | + </xs:simpleType> |
| 149 | + </xs:element> |
| 150 | + <xs:element name="RangeEnumeration" type="xs:string" /> |
| 151 | + <xs:element name="Units" type="xs:string" /> |
| 152 | + <xs:element name="Description" type="xs:string" /> |
| 153 | + </xs:sequence> |
| 154 | + <xs:attribute name="ID" type="xs:unsignedShort" use="required" /> |
| 155 | + </xs:complexType> |
| 156 | + </xs:element> |
| 157 | + </xs:sequence> |
| 158 | + </xs:complexType> |
| 159 | + </xs:element> |
| 160 | + <xs:element name="Description2" type="xs:string" /> |
| 161 | + </xs:sequence> |
| 162 | + <xs:attribute name="ObjectType" type="xs:string" use="required" /> |
| 163 | + </xs:complexType> |
| 164 | + </xs:element> |
| 165 | + </xs:sequence> |
| 166 | + </xs:complexType> |
| 167 | + </xs:element> |
| 168 | +</xs:schema> |
0 commit comments