Commit 8a2c6865 authored by Andreas Kraft's avatar Andreas Kraft
Browse files

Fixed Event definition:

- Added Data
- Added Doc
Added test for Event in dal-eg.xml
parent 2cd67ae9
...@@ -83,7 +83,9 @@ Data = ...@@ -83,7 +83,9 @@ Data =
Events = Events =
element Events { element Events {
element Event { element Event {
attribute name { text } attribute name { text },
Data,
Doc
}* }*
} }
# #
......
...@@ -215,6 +215,8 @@ ...@@ -215,6 +215,8 @@
<attribute name="name"> <attribute name="name">
<text/> <text/>
</attribute> </attribute>
<ref name="Data" />
<ref name="Doc"/>
</element> </element>
</zeroOrMore> </zeroOrMore>
</element> </element>
......
...@@ -182,6 +182,10 @@ ...@@ -182,6 +182,10 @@
</xs:element> </xs:element>
<xs:element name="Event"> <xs:element name="Event">
<xs:complexType> <xs:complexType>
<xs:sequence>
<xs:element ref="Data"/>
<xs:group ref="Doc"/>
</xs:sequence>
<xs:attribute name="name" use="required"/> <xs:attribute name="name" use="required"/>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
......
...@@ -54,6 +54,17 @@ ...@@ -54,6 +54,17 @@
</Doc> </Doc>
</Action> </Action>
</Actions> </Actions>
<Events>
<Event name="switchEvent">
<Data>
<DataPoint name="state" type="boolean" writable="false">
</DataPoint>
</Data>
<Doc>An event that indicates the new state of the switch.
</Doc>
</Event>
</Events>
</Module> </Module>
<Module name="power"> <Module name="power">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment