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