Package ome.xml.model.enums.handlers
Class UnitsTimeEnumHandler
java.lang.Object
ome.xml.model.enums.handlers.UnitsTimeEnumHandler
- All Implemented Interfaces:
IEnumerationHandler
Enumeration handler for UnitsTime.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBaseUnit(UnitsTime inModelUnit) Class<? extends Enumeration>Retrieve the entity corresponding to this handler.getEnumeration(String value) Attempt to find an enumeration from a list of enumeration values.getEnumeration(Time inUnit) static <T extends PrimitiveNumber>
TimegetQuantity(T inValue, UnitsTime inModelUnit)
-
Constructor Details
-
UnitsTimeEnumHandler
public UnitsTimeEnumHandler()
-
-
Method Details
-
getEnumeration
Description copied from interface:IEnumerationHandlerAttempt to find an enumeration from a list of enumeration values.- Specified by:
getEnumerationin interfaceIEnumerationHandler- Parameters:
value- Value for which to find an enumeration.- Throws:
EnumerationException
-
getEnumeration
- Throws:
EnumerationException
-
getBaseUnit
-
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
Description copied from interface:IEnumerationHandlerRetrieve the entity corresponding to this handler.- Specified by:
getEntityin interfaceIEnumerationHandler
-