public class UnitsLengthEnumHandler 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 UnitsLength value must match one of these patterns.
|
Constructor and Description |
---|
UnitsLengthEnumHandler() |
Modifier and Type | Method and Description |
---|---|
static Unit<Length> |
getBaseUnit(UnitsLength inModelUnit) |
Class<? extends Enumeration> |
getEntity()
Retrieve the entity corresponding to this handler.
|
Enumeration |
getEnumeration(Length inUnit) |
Enumeration |
getEnumeration(String value)
Attempt to find an enumeration from a list of enumeration values.
|
static <T extends Number> |
getQuantity(T inValue,
UnitsLength inModelUnit) |
static <T extends PrimitiveNumber> |
getQuantity(T inValue,
UnitsLength 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(Length inUnit) throws EnumerationException
EnumerationException
public static Unit<Length> getBaseUnit(UnitsLength inModelUnit)
public static <T extends PrimitiveNumber> Length getQuantity(T inValue, UnitsLength inModelUnit) throws EnumerationException
EnumerationException
public static <T extends Number> Length getQuantity(T inValue, UnitsLength inModelUnit) throws EnumerationException
EnumerationException
public Class<? extends Enumeration> getEntity()
IEnumerationHandler
getEntity
in interface IEnumerationHandler
Copyright © 2016 Open Microscopy Environment