railo.runtime.i18n
Class LocaleFactory

java.lang.Object
  extended by railo.runtime.i18n.LocaleFactory

public final class LocaleFactory
extends Object

Factory to create Locales by Cold Fusion rules


Method Summary
static Locale getLocale(String strLocale)
           
static Locale getLocale(String strLocale, Locale defaultValue)
           
static String getLocaleList()
           
static Map getLocales()
           
static String toString(Locale locale)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocale

public static Locale getLocale(String strLocale,
                               Locale defaultValue)
Parameters:
strLocale -
defaultValue -
Returns:
return locale match to String

getLocale

public static Locale getLocale(String strLocale)
                        throws ExpressionException
Parameters:
strLocale -
Returns:
return locale match to String
Throws:
ExpressionException

toString

public static String toString(Locale locale)
Parameters:
locale -
Returns:
cast a Locale to a String

getLocales

public static Map getLocales()
Returns:
Returns the locales.

getLocaleList

public static String getLocaleList()


Copyright © 2012 Railo