misc.rr.diabetes.be.calculator.locales.utils
Class LocaleFinder

java.lang.Object
  extended by misc.rr.diabetes.be.calculator.locales.utils.LocaleFinder
All Implemented Interfaces:
DiabetesInterface

public class LocaleFinder
extends Object
implements DiabetesInterface

Version:
0.0.1
Author:
Reinhold Rumberger

Field Summary
 
Fields inherited from interface misc.rr.diabetes.DiabetesInterface
stable, UNSTABLE_WARNING
 
Method Summary
 HashMap<String,File> findLocales()
          Finds locales and returns a HashMap of "Language Name" -> "Locale File" mappings.
 HashMap<String,File> findLocales(boolean force)
          Finds locales and returns a HashMap of "Language Name" -> "Locale File" mappings.
static LocaleFinder getInstance()
           
 String[] getLocaleNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LocaleFinder getInstance()

findLocales

public HashMap<String,File> findLocales()
Finds locales and returns a HashMap of "Language Name" -> "Locale File" mappings.

Returns:
HashMap of String -> File mappings

findLocales

public HashMap<String,File> findLocales(boolean force)
Finds locales and returns a HashMap of "Language Name" -> "Locale File" mappings.

Parameters:
force - if set to true, will search for locales even if some have already been found.
Returns:
HashMap of String -> File mappings

getLocaleNames

public String[] getLocaleNames()