java.lang.Object
org.opengis.util.CodeList<SensorType>
org.apache.sis.internal.jaxb.metadata.replace.SensorType
All Implemented Interfaces:
Serializable, Comparable<SensorType>

@UML(identifier="MI_SensorTypeCode", specification=ISO_19115_2) public final class SensorType extends org.opengis.util.CodeList<SensorType>
The code list for <gmi:MI_SensorTypeCode>. This code list is not defined in ISO 19115-2 but appears in XML schemas. For now GeoAPI does not yet provides it, but this choice may be revisited in a future GeoAPI version.
Since:
0.7
Version:
1.3
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.opengis.util.CodeList

    org.opengis.util.CodeList.Filter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SensorType
    The sensor is a radiometer.
    private static final long
    Serial number for compatibility with different versions.
    private static final List<SensorType>
    List of all enumerations of this type.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Constructs an element of the given name.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the list of codes of the same kind than this code list element.
    static SensorType
    Returns the sensor type that matches the given string, or returns a new one if none match it.
    static SensorType[]
    Returns the list of SensorTypes.

    Methods inherited from class org.opengis.util.CodeList

    compareTo, equals, identifier, name, names, ordinal, readResolve, toString, valueOf, valueOf

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial number for compatibility with different versions.
      See Also:
    • VALUES

      private static final List<SensorType> VALUES
      List of all enumerations of this type. Must be declared before any enum declaration.
    • RADIOMETER

      public static final SensorType RADIOMETER
      The sensor is a radiometer.
  • Constructor Details

    • SensorType

      private SensorType(String name)
      Constructs an element of the given name. The new element is automatically added to the list returned by values().
      Parameters:
      name - the name of the new element. This name must not be in use by another element of this type.
  • Method Details

    • values

      public static SensorType[] values()
      Returns the list of SensorTypes.
      Returns:
      the list of codes declared in the current JVM.
    • family

      public SensorType[] family()
      Returns the list of codes of the same kind than this code list element. Invoking this method is equivalent to invoking values(), except that this method can be invoked on an instance of the parent CodeList class.
      Specified by:
      family in class org.opengis.util.CodeList<SensorType>
      Returns:
      all code values for this code list.
    • valueOf

      public static SensorType valueOf(String code)
      Returns the sensor type that matches the given string, or returns a new one if none match it. More specifically, this methods returns the first instance for which name().equals(code) returns true. If no existing instance is found, then a new one is created for the given name.
      Parameters:
      code - the name of the code to fetch or to create.
      Returns:
      a code matching the given name.