|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<UomOgcMapping>
org.geotools.styling.UomOgcMapping
public enum UomOgcMapping
Defines the Units of Measure (UOMs) specified by the OGC SE standard and their mappings to Java
Units defined in 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.
Enum Constant Summary | |
---|---|
FOOT
|
|
METRE
|
|
PIXEL
|
Method Summary | |
---|---|
static UomOgcMapping |
get(java.lang.String seString)
Returns the appropriate UOM mapping for a given OGC SE standard string. |
static UomOgcMapping |
get(javax.measure.unit.Unit<javax.measure.quantity.Length> unit)
Returns the appropriate UOM mapping for a given Java Unit. |
java.lang.String |
getSEString()
Returns the String defined by the OGC SE specification for the unit of measure. |
javax.measure.unit.Unit<javax.measure.quantity.Length> |
getUnit()
Returns the Java Unit that corresponds to the unit of measure. |
java.lang.String |
toString()
|
static UomOgcMapping |
valueOf(java.lang.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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final UomOgcMapping METRE
public static final UomOgcMapping FOOT
public static final UomOgcMapping PIXEL
Method Detail |
---|
public static UomOgcMapping[] values()
for (UomOgcMapping c : UomOgcMapping.values()) System.out.println(c);
public static UomOgcMapping valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<UomOgcMapping>
public java.lang.String getSEString()
public javax.measure.unit.Unit<javax.measure.quantity.Length> getUnit()
SI.METER
).public static UomOgcMapping get(java.lang.String seString) throws java.lang.IllegalArgumentException
seString
- a String that follows the OGC SE specification.
java.lang.IllegalArgumentException
- if the provided String is not a valid OGC SE value.public static UomOgcMapping get(javax.measure.unit.Unit<javax.measure.quantity.Length> unit) throws java.lang.IllegalArgumentException
unit
- a Java Unit (e.g., SI.METER
).
java.lang.IllegalArgumentException
- if the provided Unit is not part of the OGC SE specification.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |