public enum UNITS extends Enum<UNITS>
Enum Constant and Description |
---|
ELECTRICPOTENTIAL |
FREQUENCY |
LENGTH |
POWER |
PRESSURE |
TEMPERATURE |
TIME |
Modifier and Type | Method and Description |
---|---|
Enum |
fromdbvalue(String obj)
Perform the reverse lookup from
todbvalue(Object) converting
the DB's enums which contain invalid characters to the upper-cased
CODE-based enums used elsewhere. |
static Map<String,Integer> |
listSqlTypes() |
String |
todbvalue(Object obj)
Map from the CODE-based enums which are used in Java, Ice, etc.
|
static UNITS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UNITS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UNITS ELECTRICPOTENTIAL
public static final UNITS FREQUENCY
public static final UNITS LENGTH
public static final UNITS PRESSURE
public static final UNITS POWER
public static final UNITS TEMPERATURE
public static final UNITS TIME
public static UNITS[] values()
for (UNITS c : UNITS.values()) System.out.println(c);
public static UNITS 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 todbvalue(Object obj)
obj
- can't be nullpublic Enum fromdbvalue(String obj)
todbvalue(Object)
converting
the DB's enums which contain invalid characters to the upper-cased
CODE-based enums used elsewhere.
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.