wt.units.service
Class MeasurementSystemCache

java.lang.Object
  extended bywt.units.service.MeasurementSystemCache

public class MeasurementSystemCache
extends Object


Field Summary
private static Hashtable baseSymbolTables
           
private static MeasurementSystemCache cache
           
private static String currentMS
           
private static int hashtableSize
           
 
Constructor Summary
private MeasurementSystemCache()
           
 
Method Summary
static Enumeration defaultDisplayUnitsKeys()
           
static Hashtable getBaseSymbolTable()
           
static Hashtable getBaseSymbolTable(String measurementSystem)
           
static String getCurrentMeasurementSystem()
           
static MeasurementSystemCache getMeasurementSystemCache()
           
static void refresh()
           
private static void setBaseSymbolTable(String measurementSystem, Hashtable table)
           
static void setCurrentMeasurementSystem(String measurementSystem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseSymbolTables

private static Hashtable baseSymbolTables

hashtableSize

private static final int hashtableSize
See Also:
Constant Field Values

currentMS

private static String currentMS

cache

private static MeasurementSystemCache cache
Constructor Detail

MeasurementSystemCache

private MeasurementSystemCache()
Method Detail

getMeasurementSystemCache

public static MeasurementSystemCache getMeasurementSystemCache()

refresh

public static void refresh()

getCurrentMeasurementSystem

public static String getCurrentMeasurementSystem()

setCurrentMeasurementSystem

public static void setCurrentMeasurementSystem(String measurementSystem)

getBaseSymbolTable

public static Hashtable getBaseSymbolTable()

getBaseSymbolTable

public static Hashtable getBaseSymbolTable(String measurementSystem)

setBaseSymbolTable

private static void setBaseSymbolTable(String measurementSystem,
                                       Hashtable table)

defaultDisplayUnitsKeys

public static Enumeration defaultDisplayUnitsKeys()