Package ome.xml.model.enums.handlers
Class UnitsLengthEnumHandler
java.lang.Object
ome.xml.model.enums.handlers.UnitsLengthEnumHandler
- All Implemented Interfaces:
IEnumerationHandler
Enumeration handler for UnitsLength.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBaseUnit(UnitsLength 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(Length inUnit) static <T extends PrimitiveNumber>
LengthgetQuantity(T inValue, UnitsLength inModelUnit)
-
Constructor Details
-
UnitsLengthEnumHandler
public UnitsLengthEnumHandler()
-
-
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> Length getQuantity(T inValue, UnitsLength inModelUnit) throws EnumerationException - Throws:
EnumerationException
-
getQuantity
public static <T extends Number> Length getQuantity(T inValue, UnitsLength inModelUnit) throws EnumerationException - Throws:
EnumerationException
-
getEntity
Description copied from interface:IEnumerationHandlerRetrieve the entity corresponding to this handler.- Specified by:
getEntityin interfaceIEnumerationHandler
-