Interface Type

All Known Subinterfaces:
RecordType

@UML(identifier="Type", specification=ISO_19103, version=2005) public interface Type
Base interface of type definitions. Every Type is identified by a TypeName. Type is either the base interface of meta-classes such as RecordType, or the return value of methods providing information about fields or members such as RecordType.getFieldTypes().

Type can optionally be associated to a Java class. The Java class can be inferred from the TypeName using a naming convention, or be provided directly by the implementation.

Since:
2.3
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name that identifies this type.
    default Optional<Type>
    Returns the Java type corresponding to the OGC/ISO type.
  • Method Details

    • getTypeName

      Returns the name that identifies this type. This method can be think as the equivalent of the Java Class.getName() method.
      Returns:
      the name that identifies this type.
    • toJavaType

      default Optional<Type> toJavaType()
      Returns the Java type corresponding to the OGC/ISO type. By default, the Java type is inferred from the name by delegating to TypeName.toJavaType().
      Returns:
      the Java type (usually a Class) for this OGC/ISO type.
      Since:
      3.1
      Departure from OGC/ISO abstract specification:
      Departure for closer integration with the Java environment Added for integration with the Java language.