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