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