Package org.geotools.styling
Enum UomOgcMapping
- Object
- 
- Enum<UomOgcMapping>
- 
- UomOgcMapping
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<UomOgcMapping>
 
 public enum UomOgcMapping extends Enum<UomOgcMapping> Defines the Units of Measure (UOMs) specified by the OGC SE standard and their mappings to Java Units defined injavax.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.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UomOgcMappingget(String seString)Returns the appropriate UOM mapping for a given OGC SE standard string.static UomOgcMappingget(Unit<Length> unit)Returns the appropriate UOM mapping for a given Java Unit.StringgetSEString()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.StringtoString()static UomOgcMappingvalueOf(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.
 
- 
- 
- 
Enum Constant Detail- 
METREpublic static final UomOgcMapping METRE 
 - 
FOOTpublic static final UomOgcMapping FOOT 
 - 
PIXELpublic static final UomOgcMapping PIXEL 
 
- 
 - 
Method Detail- 
valuespublic static UomOgcMapping[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UomOgcMapping c : UomOgcMapping.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static UomOgcMapping valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- Enum<UomOgcMapping>
 
 - 
getSEStringpublic String getSEString() Returns the String defined by the OGC SE specification for the unit of measure.- Returns:
- a String that follows the OGC SE specification
 
 - 
getUnitpublic Unit<Length> getUnit() Returns the Java Unit that corresponds to the unit of measure.- Returns:
- a Java Unit (e.g., SI.METRE).
 
 - 
getpublic static UomOgcMapping get(String seString) throws IllegalArgumentException Returns the appropriate UOM mapping for a given OGC SE standard string.- Parameters:
- seString- a String that follows the OGC SE specification.
- Returns:
- the corresponding UnitOfMeasure.
- Throws:
- IllegalArgumentException- if the provided String is not a valid OGC SE value.
 
 - 
getpublic static UomOgcMapping get(Unit<Length> unit) throws IllegalArgumentException Returns the appropriate UOM mapping for a given Java Unit.- Parameters:
- unit- a Java Unit (e.g.,- SI.METRE).
- Returns:
- the corresponding UnitOfMeasure.
- Throws:
- IllegalArgumentException- if the provided Unit is not part of the OGC SE specification.
 
 
- 
 
-