Copyright © 2012 Open Geospatial Consortium 77
gmlexr:targetCodeListBuildingTypegmlexr: targetCodeList appinfo
annotation element
if asDictionary=true or element name=type type=ex:BuildingTypeType
if asDictionary=false. F.2.1.2.9 Code lists
Code-list-valued properties may be qualified with an appInfo annotation element gmlexr:targetCodeList specifying that the referenced item in an xlink:href
attribute of the property is a value in an external code list dictionary. The value of the annotation element is the name of the code list.
12.2.2 Requirements class Requirements Class
http:www.opengis.netspecGML3.3requml2gml
Target type GML application schema
Name Improved conversion rule
Dependency http:www.opengis.netdocISGML3.2clause-E
except for the requirements related to UML classes with stereotype CodeList
Requirement http:www.opengis.netspecGML3.3requml2gmlnotAsDictionary-type
A UML class with stereotype CodeList and with a tagged value asDictionary with the value false SHALL be mapped like an enumeration, but with the following
differences:
- A facet pattern value=’other: \w{2,}’ shall be added that allows for any text value beside the predefined values; these free values are prefixed with other: .
-
If a code is specified for a code list value, only the code shall be represented as an enumeration facet.
- An encoded code value shall be qualified with an appinfo annotation with a gml:description element specifying the text value of the enumerated value.
Requirement http:www.opengis.netspecGML3.3requml2gmlasDictionary-type
If a UML class with stereotype CodeList is without a tagged value asDictionary, or carries a tagged value asDictionary with the value true, the code list shall be
represented by an external dictionary, vocabulary or ontology, using any suitable syntax or encoding.
Requirement http:www.opengis.netspecGML3.3requml2gmlnotAsDictionary-property
A UML attribute whose type is a class stereotyped CodeList with a tagged value asDictionary with the value false shall be mapped to an element with a type as
specified by
http:www.opengis.netspecGML3.3requml2gmlnotAsDictionary-type
or a type derived from such a type. EXAMPLE A derived type has to be used, if the property is nillable and it is desired that
the content type includes a nilReason attribute. For such a conversion an extended
78 Copyright © 2012 Open Geospatial Consortium
encoding rule is required.
Requirement http:www.opengis.netspecGML3.3requml2gmlasDictionary-property
A UML attribute whose type is a class stereotyped CodeList without a tagged value asDictionary, or which carries a tagged value asDictionary with the value true, shall
be mapped to an element with a content model of gml:ReferenceType or a type derived from gml:ReferenceType.
12.2.3 Conformance Conformance Class