public enum UomOgcMapping extends Enum<UomOgcMapping>
javax.measure.unit
. Each entry in this enum provides both the Java
Unit for the given UOM and the corresponding String that is defined by the SE standard.Modifier and Type | Method and Description |
---|---|
static UomOgcMapping |
get(String seString)
Returns the appropriate UOM mapping for a given OGC SE standard string.
|
static UomOgcMapping |
get(Unit<Length> unit)
Returns the appropriate UOM mapping for a given Java Unit.
|
String |
getSEString()
Returns the String defined by the OGC SE specification for the unit of measure.
|
Unit<Length> |
getUnit()
Returns the Java Unit that corresponds to the unit of measure.
|
String |
toString() |
static UomOgcMapping |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UomOgcMapping[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UomOgcMapping METRE
public static final UomOgcMapping FOOT
public static final UomOgcMapping PIXEL
public static UomOgcMapping[] values()
for (UomOgcMapping c : UomOgcMapping.values()) System.out.println(c);
public static UomOgcMapping valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<UomOgcMapping>
public String getSEString()
public Unit<Length> getUnit()
SI.METRE
).public static UomOgcMapping get(String seString) throws IllegalArgumentException
seString
- a String that follows the OGC SE specification.IllegalArgumentException
- if the provided String is not a valid OGC SE value.public static UomOgcMapping get(Unit<Length> unit) throws IllegalArgumentException
unit
- a Java Unit (e.g., SI.METRE
).IllegalArgumentException
- if the provided Unit is not part of the OGC SE
specification.Copyright © 1996–2019 Geotools. All rights reserved.