Commit 0d914d56 authored by ankraft's avatar ankraft

Added ‘default’ attribute to Arg. Added test.

parent 45b8cb0d
......@@ -139,6 +139,7 @@ ArgDef =
element Arg {
attribute name { xsd:Name },
attribute optional { xsd:boolean }?,
attribute default { text }?,
attribute semanticURI { xsd:anyURI }?,
DocDef,
DataTypeDef
......@@ -152,6 +153,7 @@ Data =
attribute writable { xsd:boolean }?,
attribute readable { xsd:boolean }?,
attribute eventable { xsd:boolean }?,
attribute default { text }?,
attribute semanticURI { xsd:anyURI }?,
DocDef,
DataTypeDef
......
......@@ -391,6 +391,11 @@
<data type="boolean"/>
</attribute>
</optional>
<optional>
<attribute name="default">
<text />
</attribute>
</optional>
<optional>
<attribute name="semanticURI">
<data type="anyURI"/>
......@@ -431,6 +436,11 @@
<data type="boolean"/>
</attribute>
</optional>
<optional>
<attribute name="default">
<text />
</attribute>
</optional>
<optional>
<attribute name="semanticURI">
<data type="anyURI"/>
......
......@@ -313,6 +313,7 @@
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:Name"/>
<xs:attribute name="optional" type="xs:boolean"/>
<xs:attribute name="default"/>
<xs:attribute name="semanticURI" type="xs:anyURI"/>
</xs:extension>
</xs:complexContent>
......@@ -337,6 +338,7 @@
<xs:attribute name="writable" type="xs:boolean"/>
<xs:attribute name="readable" type="xs:boolean"/>
<xs:attribute name="eventable" type="xs:boolean"/>
<xs:attribute name="default"/>
<xs:attribute name="semanticURI" type="xs:anyURI"/>
</xs:extension>
</xs:complexContent>
......
......@@ -6,7 +6,7 @@
<ModuleClasses>
<ModuleClass name="TestArg">
<Actions>
<Action name="testAction">
<Action name="testActionOptional">
<Args>
<Arg name="argMandatory">
<DataType>
......@@ -20,6 +20,20 @@
</Arg>
</Args>
</Action>
<Action name="testActionDefault">
<Args>
<Arg name="arg1" default="true">
<DataType>
<SimpleType type="boolean" />
</DataType>
</Arg>
<Arg name="arg2" default="foo">
<DataType>
<SimpleType type="string" />
</DataType>
</Arg>
</Args>
</Action>
</Actions>
</ModuleClass>
</ModuleClasses>
......
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