|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.lang3.LocaleUtils
org.xwiki.localization.LocaleUtils
public class LocaleUtils
Extends LocaleUtils with more tools.
| Constructor Summary | |
|---|---|
LocaleUtils()
|
|
| Method Summary | |
|---|---|
static Locale |
getParentLocale(Locale locale)
|
static Locale |
toLocale(String str)
Extends LocaleUtils which return Locale.ROOT for an empty string. |
| Methods inherited from class org.apache.commons.lang3.LocaleUtils |
|---|
availableLocaleList, availableLocaleSet, countriesByLanguage, isAvailableLocale, languagesByCountry, localeLookupList, localeLookupList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocaleUtils()
| Method Detail |
|---|
public static Locale getParentLocale(Locale locale)
locale - the locale
public static Locale toLocale(String str)
LocaleUtils which return Locale.ROOT for an empty string.
str - the locale String to convert, null returns null
IllegalArgumentException - if the string is an invalid format
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||