Skip to content
Snippets Groups Projects
Commit 0d914d56 authored by ankraft's avatar ankraft
Browse files

Added ‘default’ attribute to Arg. Added test.

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