Enum Stereotype

  • All Implemented Interfaces:
    Serializable, Comparable<Stereotype>

    public enum Stereotype
    extends Enum<Stereotype>
    Type of modeling element as declared in the OGC/ISO UML diagram. Values of this enumeration are associated to GeoAPI interfaces by the Classifier annotation.

    This enumeration is closely related to the ISO 19115 Datatype code list, but not identical since ISO 19115 specifies datatype and stereotype as two distinct information. Furthermore Stereotype needs to be defined as an Enum for allowing usages in Java annotations

    This enumeration does not include the code list and enumeration stereotypes, because instances of those types are identified by the CodeList and Enum base classes respectively.

    Since:
    3.1
    See Also:
    Datatype, Stereotype on Wikipedia
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ABSTRACT
      Root class for a structural polymorphism.
      DATATYPE
      Encapsulation of data, as opposed to taxonomic or behavioural descriptions.
      METACLASS
      Class whose instances are classes.
      TYPE
      Class that specifies a domain of objects together with the operations applicable to the objects, without defining the physical implementation of those objects.
      UNION
      Type consisting of one and only one of several alternatives (listed as member attributes).
    • Enum Constant Detail

      • TYPE

        public static final Stereotype TYPE
        Class that specifies a domain of objects together with the operations applicable to the objects, without defining the physical implementation of those objects.

        This is the default value for interfaces without Classifier annotation.

        See Also:
        Datatype.TYPE_CLASS
      • DATATYPE

        public static final Stereotype DATATYPE
        Encapsulation of data, as opposed to taxonomic or behavioural descriptions. Data types may not have an identity of their own and are usually aggregated into some sort of container such as being an attribute in another class.
        See Also:
        Datatype.DATATYPE_CLASS
      • ABSTRACT

        public static final Stereotype ABSTRACT
        Root class for a structural polymorphism. Abstract types are not directly instantiable.
        See Also:
        Datatype.ABSTRACT_CLASS
      • UNION

        public static final Stereotype UNION
        Type consisting of one and only one of several alternatives (listed as member attributes).
        See Also:
        Datatype.UNION_CLASS
    • Method Detail

      • values

        public static Stereotype[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Stereotype valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null