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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengis.util.CodeList
org.opengis.util.CodeList.Filter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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
ConstructorsModifierConstructorDescriptionprivate
SensorType
(String name) Constructs an element of the given name. -
Method Summary
Modifier and TypeMethodDescriptionfamily()
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[]
values()
Returns the list ofSensorType
s.Methods inherited from class org.opengis.util.CodeList
compareTo, equals, identifier, name, names, ordinal, readResolve, toString, valueOf, valueOf
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for compatibility with different versions.- See Also:
-
VALUES
List of all enumerations of this type. Must be declared before any enum declaration. -
RADIOMETER
The sensor is a radiometer.
-
-
Constructor Details
-
SensorType
Constructs an element of the given name. The new element is automatically added to the list returned byvalues()
.- Parameters:
name
- the name of the new element. This name must not be in use by another element of this type.
-
-
Method Details
-
values
Returns the list ofSensorType
s.- 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 parentCodeList
class.- Specified by:
family
in 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.
-