Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
MAS
SDT
Commits
8da029f2
Commit
8da029f2
authored
Apr 26, 2019
by
ankraft
Browse files
Added optionality for Arg. Added test case.
parent
84fbbaa1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
0 deletions
+34
-0
SDT/schema4.0/etc/domain.rnc
SDT/schema4.0/etc/domain.rnc
+1
-0
SDT/schema4.0/src/domain.rng
SDT/schema4.0/src/domain.rng
+5
-0
SDT/schema4.0/src/domain.xsd
SDT/schema4.0/src/domain.xsd
+1
-0
SDT/schema4.0/test/arg-test.xml
SDT/schema4.0/test/arg-test.xml
+27
-0
No files found.
SDT/schema4.0/etc/domain.rnc
View file @
8da029f2
...
...
@@ -139,6 +139,7 @@ ArgDef =
element Args {
element Arg {
attribute name { xsd:Name },
attribute optional { xsd:boolean }?,
attribute semanticURI { xsd:anyURI }?,
DocDef,
DataTypeDef
...
...
SDT/schema4.0/src/domain.rng
View file @
8da029f2
...
...
@@ -386,6 +386,11 @@
<attribute name="name">
<data type="Name"/>
</attribute>
<optional>
<attribute name="optional">
<data type="boolean"/>
</attribute>
</optional>
<optional>
<attribute name="semanticURI">
<data type="anyURI"/>
...
...
SDT/schema4.0/src/domain.xsd
View file @
8da029f2
...
...
@@ -312,6 +312,7 @@
<xs:element
ref=
"DataType"
/>
</xs:sequence>
<xs:attribute
name=
"name"
use=
"required"
type=
"xs:Name"
/>
<xs:attribute
name=
"optional"
type=
"xs:boolean"
/>
<xs:attribute
name=
"semanticURI"
type=
"xs:anyURI"
/>
</xs:extension>
</xs:complexContent>
...
...
SDT/schema4.0/test/arg-test.xml
0 → 100644
View file @
8da029f2
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment