public class UnitsPowerEnumHandler extends Object implements IEnumerationHandler
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER
Logger for this class.
|
private static Hashtable<String,String> |
patterns
Every UnitsPower value must match one of these patterns.
|
Constructor and Description |
---|
UnitsPowerEnumHandler() |
Modifier and Type | Method and Description |
---|---|
static Unit<Power> |
getBaseUnit(UnitsPower inModelUnit) |
Class<? extends Enumeration> |
getEntity()
Retrieve the entity corresponding to this handler.
|
Enumeration |
getEnumeration(Power inUnit) |
Enumeration |
getEnumeration(String value)
Attempt to find an enumeration from a list of enumeration values.
|
static <T extends Number> |
getQuantity(T inValue,
UnitsPower inModelUnit) |
static <T extends PrimitiveNumber> |
getQuantity(T inValue,
UnitsPower inModelUnit) |
private static Hashtable<String,String> |
makePatterns() |
public Enumeration getEnumeration(String value) throws EnumerationException
IEnumerationHandler
getEnumeration
in interface IEnumerationHandler
value
- Value for which to find an enumeration.EnumerationException
public Enumeration getEnumeration(Power inUnit) throws EnumerationException
EnumerationException
public static Unit<Power> getBaseUnit(UnitsPower inModelUnit)
public static <T extends PrimitiveNumber> Power getQuantity(T inValue, UnitsPower inModelUnit) throws EnumerationException
EnumerationException
public static <T extends Number> Power getQuantity(T inValue, UnitsPower inModelUnit) throws EnumerationException
EnumerationException
public Class<? extends Enumeration> getEntity()
IEnumerationHandler
getEntity
in interface IEnumerationHandler
Copyright © 2015 Open Microscopy Environment