UML packages UML classes general rules UML classes basic types UML classes data types UML classes feature types UML classes object types UML classes enumerations UML classes code lists

134 Copyright © 2011 Open Geospatial Consortium. Table 45 — Tagged values UML model element Associated tagged values Package • documentation • xsdDocument • targetNamespace only Application Schema • xmlns only Application Schema • version only Application Schema • gmlProfileSchema only Application Schema Class • documentation • noPropertyType • byValuePropertyType • isCollection • asDictionary only CodeList • xmlSchemaType only Type Attribute and association end • documentation • sequenceNumber • inlineOrByReference • isMetadata • asXMLAttribute see section 24.2.4.11 • purpose see section 24.2.4.11 Note: the tagged value “gmlProfileSchema” was not renamed because profiling a service schema is not in the scope of this standard. A future version of this standard can define rules for service model profiles and their encoding to XSD.

24.2.4.2 UML packages

Clause E.2.4.2 of OGC 07-036 applies with one change. The gmlProfileSchema tagged value used on a package with stereotype Application Schema shall be ignored.

24.2.4.3 UML classes general rules

Clause E.2.4.3 of OGC 07-036 applies without changes. Copyright © 2011 Open Geospatial Consortium. 135

24.2.4.4 UML classes basic types

Clause E.2.4.4 of OGC 07-036 applies without changes.

24.2.4.5 UML classes data types

Clause E.2.4.5 of OGC 07-036 applies with the following changes: • The supertype of a class with stereotype DataType shall not derive directly or indirectly from swes:AbstractSWESType . • If the class has no superclass then the substitution group of the global XML element shall be empty – a DataType in the service model shall not be in the substitution group of gml:AbstractObject .

24.2.4.6 UML classes feature types

Clause E.2.4.6 of OGC 07-036 applies without changes.

24.2.4.7 UML classes object types

Clause E.2.4.7 of OGC 07-036 applies with the following changes: • UML classes with no stereotype or stereotype Type derive directly or indirectly from swes:AbstractSWESType , not from gml:AbstractGMLType . • If the class is a class without supertype, it directly extends swes:AbstractSWESType , otherwise it extends its supertype which shall be derived from swes:AbstractSWESType again, directly or indirectly • The substitution group of the global XML element shall be the name of the supertype or swes:AbstractSWES for a class without supertype.

24.2.4.8 UML classes enumerations

Clause E.2.4.8 of OGC 07-036 applies without changes.

24.2.4.9 UML classes code lists

Clause E.2.4.9 of OGC 07-036 applies with one change: • The mapping of a UML class with stereotype CodeList without tagged value “asDictionary” equals “true” shall have the facet “ pattern value=’other: [A- Za-z0-9_]{2,}’ ”. Note: The regular expression used here is more explicit than the one from 07-036. Some tools – like XMLSpy – have problems recognizing the underscore, therefore the switch to the more explicit form. 136 Copyright © 2011 Open Geospatial Consortium.

24.2.4.10 UML classes unions