public enum UnitId extends Enum<UnitId> implements Serializable, AdagioEnumerationDef<Integer>
Enum Constant and Description |
---|
DAY
TODO: Model Documentation for Enumeration Literal DAY value 17
|
DECIMAL_HOURS
TODO: Model Documentation for Enumeration Literal DECIMAL_HOURS value 9
|
MILLIMETER
TODO: Model Documentation for Enumeration Literal MILLIMETER value 6
|
NONE
TODO: Model Documentation for Enumeration Literal NONE value 1
|
Modifier and Type | Method and Description |
---|---|
static UnitId |
fromString(String name)
Retrieves an instance of UnitId from
its name . |
static UnitId |
fromValue(Integer value)
Returns an instance of UnitId from Integer
value . |
String |
getDescription() |
String |
getKey() |
Class<?> |
getType() |
Integer |
getValue()
Gets the underlying value of this type safe enumeration.
|
String |
getValueAsString() |
static List<Integer> |
literals()
Returns an unmodifiable list containing the literals that are known by this enumeration.
|
static List<String> |
names()
Returns an unmodifiable list containing the names of the literals that are known
by this enumeration.
|
void |
setValue(Integer newValue) |
Integer |
value()
Returns an enumeration literal Integer
value . |
static UnitId |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitId MILLIMETER
public static final UnitId DECIMAL_HOURS
public static UnitId[] values()
for (UnitId c : UnitId.values()) System.out.println(c);
public static UnitId 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 void setValue(Integer newValue)
setValue
in interface AdagioEnumerationDef<Integer>
public String getValueAsString()
getValueAsString
in interface AdagioEnumerationDef<Integer>
public static UnitId fromString(String name)
its name
.name
- the name to create the UnitId from.public Integer value()
value
.
Required by JAXB2 enumeration implementationpublic static UnitId fromValue(Integer value)
value
.
Required by JAXB2 enumeration implementationvalue
- the value to create the UnitId from.public Integer getValue()
getValue
in interface AdagioEnumerationDef<Integer>
public String getDescription()
getDescription
in interface AdagioEnumerationDef<Integer>
public static List<Integer> literals()
Copyright © 2012–2014 IFREMER. All rights reserved.