Class SensorType
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
- Author:
- Martin Desruisseaux (Geomatys)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengis.util.CodeList
org.opengis.util.CodeList.Filter -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfamily()Returns the list of codes of the same kind than this code list element.static SensorTypeReturns the sensor type that matches the given string, or returns a new one if none match it.static SensorType[]values()Returns the list ofSensorTypes.Methods inherited from class org.opengis.util.CodeList
compareTo, equals, identifier, name, names, ordinal, readResolve, toString, valueOf, valueOf
-
Field Details
-
RADIOMETER
The sensor is a radiometer.
-
-
Method Details
-
values
Returns the list ofSensorTypes.- Returns:
- the list of codes declared in the current JVM.
-
family
Returns the list of codes of the same kind than this code list element. Invoking this method is equivalent to invokingvalues(), except that this method can be invoked on an instance of the parentCodeListclass.- Specified by:
familyin classorg.opengis.util.CodeList<SensorType>- Returns:
- all code values for this code list.
-
valueOf
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 whichname().equals(code)returnstrue. 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.
-