Package org.bedework.calfacade.locale
Class BwLocale
java.lang.Object
org.bedework.calfacade.locale.BwLocale
Make the current locale for bedework available.
- Author:
- Mike Douglass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWill return value as set or jvm defaultstatic StringgetLang()Get th elanguage from the current localestatic LocaleWill return value as set or jvm defaultstatic BwLocalestatic LocalematchLocales(Collection<Locale> locales, Locale locale) See if we can find a locale in the list that matches the given locale.voidsetCurrentLocale(Locale val) static void
-
Constructor Details
-
BwLocale
public BwLocale()
-
-
Method Details
-
setLocale
- Parameters:
val-
-
getLocale
Will return value as set or jvm default- Returns:
- Locale
-
setCurrentLocale
- Parameters:
val-
-
getCurrentLocale
Will return value as set or jvm default- Returns:
- Locale
-
getLocales
- Returns:
- BwLocale object
-
matchLocales
See if we can find a locale in the list that matches the given locale. We return either an exact match or the first match where the languages are equal.- Parameters:
locales-locale-- Returns:
- Locale
-
getLang
Get th elanguage from the current locale- Returns:
- Language String
-