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