Skip to content

Commit 782d917

Browse files
authored
Add files via upload
1 parent fdad793 commit 782d917

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+8405
-0
lines changed

LWM2M-v1_1.xsd

+168
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
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>

LWM2M.xsd

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

0 commit comments

Comments
 (0)