public class UnitParserUCUM extends Object implements UnitParser
Parses a string containing a UCUM unit definition and create a Unit object with the right scale factors and powers.
Constructor and Description |
---|
UnitParserUCUM() |
Modifier and Type | Method and Description |
---|---|
Unit |
getUnit(String ucumDef)
Call this to get a Unit object corresponding to the given ucum string
|
static Hashtable<String,Unit> |
getUnitTable() |
void |
preloadUCUMUnits()
Call this method to preload all units defined in UCUM essence
|
public Unit getUnit(String ucumDef)
getUnit
in interface UnitParser
public void preloadUCUMUnits()
Copyright © 2016 Sensia Software LLC. All rights reserved.