Skip to content
Snippets Groups Projects
Commit 2b0bb719 authored by ankraft's avatar ankraft
Browse files

Removed BasicType "enum". Added BasicType "void". Added test case.

parent 901b45c3
No related branches found
No related tags found
No related merge requests found
......@@ -168,12 +168,12 @@
<value>byte</value>
<value>float</value>
<value>array</value>
<value>enum</value>
<value>date</value>
<value>time</value>
<value>datetime</value>
<value>blob</value>
<value>uri</value>
<value>void</value>
</choice>
</define>
......
......@@ -9,8 +9,8 @@
- See the license text at [https://opensource.org/licenses/BSD-3-Clause for
- full details.
-->
<xs:schema targetNamespace="http://homegatewayinitiative.org/xml/dal/3.0"
xmlns="http://homegatewayinitiative.org/xml/dal/3.0"
<xs:schema targetNamespace="http://homegatewayinitiative.org/xml/dal/4.0"
xmlns="http://homegatewayinitiative.org/xml/dal/4.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
......@@ -136,12 +136,12 @@
<xs:enumeration value="byte"/>
<xs:enumeration value="float"/>
<xs:enumeration value="array"/>
<xs:enumeration value="enum"/>
<xs:enumeration value="date"/>
<xs:enumeration value="time"/>
<xs:enumeration value="datetime"/>
<xs:enumeration value="blob"/>
<xs:enumeration value="uri"/>
<xs:enumeration value="void"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="Constraints">
......
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Test the void BasicType -->
<Domain id="example2.SDT" xmlns="http://homegatewayinitiative.org/xml/dal/4.0" xmlns:xi="http://www.w3.org/2001/XInclude">
<Modules>
<ModuleClass name="TestVoid">
<Actions>
<Action name="TestVoidAction">
<DataType>
<SimpleType type="void"/>
</DataType>
</Action>
</Actions>
<Data>
<DataPoint name="TestVoidDataPoint" writable="true">
<DataType>
<SimpleType type="void"/>
</DataType>
</DataPoint>
</Data>
</ModuleClass>
</Modules>
</Domain>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment