Package ome.xml.model.enums.handlers
Class UnitsTimeEnumHandler
- java.lang.Object
-
- ome.xml.model.enums.handlers.UnitsTimeEnumHandler
-
- All Implemented Interfaces:
IEnumerationHandler
public class UnitsTimeEnumHandler extends Object implements IEnumerationHandler
Enumeration handler for UnitsTime.
-
-
Constructor Summary
Constructors Constructor Description UnitsTimeEnumHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 PrimitiveNumber>
TimegetQuantity(T inValue, UnitsTime inModelUnit)
-
-
-
Method Detail
-
getEnumeration
public Enumeration getEnumeration(String value) throws EnumerationException
Description copied from interface:IEnumerationHandler
Attempt to find an enumeration from a list of enumeration values.- Specified by:
getEnumeration
in interfaceIEnumerationHandler
- Parameters:
value
- Value for which to find an enumeration.- Throws:
EnumerationException
-
getEnumeration
public Enumeration getEnumeration(Time inUnit) throws EnumerationException
- Throws:
EnumerationException
-
getQuantity
public static <T extends PrimitiveNumber> Time getQuantity(T inValue, UnitsTime inModelUnit) throws EnumerationException
- Throws:
EnumerationException
-
getQuantity
public static <T extends Number> Time getQuantity(T inValue, UnitsTime inModelUnit) throws EnumerationException
- Throws:
EnumerationException
-
getEntity
public Class<? extends Enumeration> getEntity()
Description copied from interface:IEnumerationHandler
Retrieve the entity corresponding to this handler.- Specified by:
getEntity
in interfaceIEnumerationHandler
-
-