Commit 8da029f2 authored by ankraft's avatar ankraft
Browse files

Added optionality for Arg. Added test case.

parent 84fbbaa1
...@@ -139,6 +139,7 @@ ArgDef = ...@@ -139,6 +139,7 @@ ArgDef =
element Args { element Args {
element Arg { element Arg {
attribute name { xsd:Name }, attribute name { xsd:Name },
attribute optional { xsd:boolean }?,
attribute semanticURI { xsd:anyURI }?, attribute semanticURI { xsd:anyURI }?,
DocDef, DocDef,
DataTypeDef DataTypeDef
......
...@@ -386,6 +386,11 @@ ...@@ -386,6 +386,11 @@
<attribute name="name"> <attribute name="name">
<data type="Name"/> <data type="Name"/>
</attribute> </attribute>
<optional>
<attribute name="optional">
<data type="boolean"/>
</attribute>
</optional>
<optional> <optional>
<attribute name="semanticURI"> <attribute name="semanticURI">
<data type="anyURI"/> <data type="anyURI"/>
......
...@@ -312,6 +312,7 @@ ...@@ -312,6 +312,7 @@
<xs:element ref="DataType"/> <xs:element ref="DataType"/>
</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="semanticURI" type="xs:anyURI"/> <xs:attribute name="semanticURI" type="xs:anyURI"/>
</xs:extension> </xs:extension>
</xs:complexContent> </xs:complexContent>
......
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Test the data types references -->
<Domain id="arg-test" xmlns="http://homegatewayinitiative.org/xml/dal/4.0" xmlns:xi="http://www.w3.org/2001/XInclude">
<ModuleClasses>
<ModuleClass name="TestArg">
<Actions>
<Action name="testAction">
<Args>
<Arg name="argMandatory">
<DataType>
<SimpleType type="boolean" />
</DataType>
</Arg>
<Arg name="argOptional" optional="true">
<DataType>
<SimpleType type="boolean" />
</DataType>
</Arg>
</Args>
</Action>
</Actions>
</ModuleClass>
</ModuleClasses>
</Domain>
\ No newline at end of file
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