diff options
| author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-04-09 16:02:21 +0200 | 
|---|---|---|
| committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:19:35 +0200 | 
| commit | f236e4d7401d55d18707ac3374f913ada41e5b7b (patch) | |
| tree | 7770f397b4ce2487ae19ed11143583f7d44e3af2 /testdata | |
| parent | f98526eb42909efbc8b2b4f85dfbfd588e25f515 (diff) | |
added serialization support for attributes descriptors.
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/integration/ontology_serialization/attributes_descriptor.in.osml | 10 | ||||
| -rw-r--r-- | testdata/integration/ontology_serialization/attributes_descriptor.out.osxml | 18 | 
2 files changed, 28 insertions, 0 deletions
| diff --git a/testdata/integration/ontology_serialization/attributes_descriptor.in.osml b/testdata/integration/ontology_serialization/attributes_descriptor.in.osml new file mode 100644 index 0000000..8c1957a --- /dev/null +++ b/testdata/integration/ontology_serialization/attributes_descriptor.in.osml @@ -0,0 +1,10 @@ +\document +	\ontology#test +		\struct#a[root=true] +			\attributes +				\attribute[name="myAttr", type=int, default=4] +		\struct#b[isa=a] +			\attributes +				\attribute[name="myOtherAttr", type=string, default="bla"] + +\a[myAttr=4] diff --git a/testdata/integration/ontology_serialization/attributes_descriptor.out.osxml b/testdata/integration/ontology_serialization/attributes_descriptor.out.osxml new file mode 100644 index 0000000..00f21f5 --- /dev/null +++ b/testdata/integration/ontology_serialization/attributes_descriptor.out.osxml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<document> +	<ontology name="test"> +		<struct cardinality="{*}" name="a" root="true" transparent="false"> +			<syntax/> +			<attributes> +				<attribute default="4" name="myAttr" type="int"/> +			</attributes> +		</struct> +		<struct cardinality="{*}" isa="a" name="b" root="false" transparent="false"> +			<syntax/> +			<attributes> +				<attribute default="bla" name="myOtherAttr" type="string"/> +			</attributes> +		</struct> +	</ontology> +	<test:a myAttr="4"/> +</document> | 
