Package org.vast.unit
Class UnitParserUCUM
java.lang.Object
org.vast.unit.UnitParserUCUM
- All Implemented Interfaces:
UnitParser
Parses a string containing a UCUM unit definition and create a Unit object with the right scale factors and powers.
- Since:
- May 4, 2006
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UnitParserUCUM
public UnitParserUCUM()
-
-
Method Details
-
getUnit
Get a Unit object corresponding to the given UCUM string- Specified by:
getUnit
in interfaceUnitParser
- Parameters:
ucumDef
- the UCUM string- Throws:
IllegalArgumentException
- if UCUM string passed as argument is invalid
-
findUnit
Get a Unit object corresponding to the given UCUM string- Parameters:
ucumDef
-- Returns:
- The unit instance or null of no unit can be constructed for the given UCUM string
-
isValidUnit
-
getUnitTable
-