info.informatica.util.locale
Class LocaleEnum

java.lang.Object
  extended by info.informatica.util.locale.LocaleEnum

public class LocaleEnum
extends Object

Locale-aware Enum.

This is an old class, there are better solutions now.

Author:
amengual at informatica dot info

Constructor Summary
LocaleEnum(String baseName, String ext)
           
 
Method Summary
 String[] getBestEnum()
          Gets the enum for the default locale.
 String[] getBestEnum(Locale locale)
           
 String[] getEnum()
          Gets the default enum, which may or may not be the enum for the default locale.
 String[] getEnum(Locale locale)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleEnum

public LocaleEnum(String baseName,
                  String ext)
Method Detail

getBestEnum

public String[] getBestEnum()
Gets the enum for the default locale.

Returns:
the enum for the default locale.

getBestEnum

public String[] getBestEnum(Locale locale)

getEnum

public String[] getEnum(Locale locale)

getEnum

public String[] getEnum()
Gets the default enum, which may or may not be the enum for the default locale.

Returns:
the default enum.