Interface TypeName

All Superinterfaces:
Comparable<GenericName>, GenericName, LocalName

@UML(identifier="TypeName", specification=ISO_19103) public interface TypeName extends LocalName
A local name that references an object type is some schema. Can be used as the name of a record type, the name of a feature type, the name of data quality result type or the name of a field (or member) type among other usages.

Mapping to classes in the Java language

It is sometimes useful to establish a bidirectional mapping between TypeName and Java Class. For types defined by an OGC/ISO standard, the type name should be the UML identifier in the "OGC" namespace. That namespace is consistent with the data type URN standard values, also shown below for information purpose.
Mapping from Java classes to type names
Java class Scoped type name Data type URN standard values
Boolean OGC:Boolean urn:ogc:def:dataType:OGC:1.1:boolean
Integer OGC:Integer urn:ogc:def:dataType:OGC:1.1:nonNegativeInteger
Float OGC:Real
Double OGC:Real
BigDecimal OGC:Decimal
String OGC:CharacterString urn:ogc:def:dataType:OGC:1.1:string
InternationalString OGC:FreeText
Locale OGC:PT_Locale
ZonedDateTime OGC:DateTime
URI OGC:URI urn:ogc:def:dataType:OGC:1.1:anyURI
Metadata OGC:MD_Metadata
Implementation should define explicitly the mapping to Java classes by overriding the toJavaType() method. It avoids the need to assume any particular convention.
Since:
2.1
See Also: