org.deegree.style.styling.components
Enum UOM
java.lang.Object
java.lang.Enum<UOM>
org.deegree.style.styling.components.UOM
- All Implemented Interfaces:
- Serializable, Comparable<UOM>
public enum UOM
- extends Enum<UOM>
UOM
- Version:
- $Revision: 20495 $, $Date: 2009-10-30 15:57:57 +0100 (Fri, 30 Oct 2009) $
- Author:
- Andreas Schmitz, last edited by: $Author: aschmitz $
Method Summary |
static UOM |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static UOM[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Metre
public static final UOM Metre
Foot
public static final UOM Foot
Pixel
public static final UOM Pixel
mm
public static final UOM mm
values
public static UOM[] 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 (UOM c : UOM.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static UOM 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
Copyright © 2011. All Rights Reserved.