public class LocaleInfoImpl extends Object
LocaleInfo
Constructor and Description |
---|
LocaleInfoImpl() |
Modifier and Type | Method and Description |
---|---|
String[] |
getAvailableLocaleNames()
Returns an array of available locale names.
|
DateTimeFormatInfo |
getDateTimeFormatInfo()
Create a
DateTimeFormatInfo instance appropriate for this locale. |
String |
getLocaleCookieName()
Returns the name of the name of the cookie holding the locale to use,
which is defined in the config property
locale.cookie . |
String |
getLocaleName()
Returns the current locale name, such as "default, "en_US", etc.
|
String |
getLocaleNativeDisplayName(String localeName)
Returns the display name of the requested locale in its native locale, if
possible.
|
String |
getLocaleQueryParam()
Returns the name of the query parameter holding the locale to use, which is
defined in the config property
locale.queryparam . |
LocalizedNames |
getLocalizedNames() |
NumberConstants |
getNumberConstants()
Returns a NumberConstants instance appropriate for this locale.
|
boolean |
hasAnyRTL()
Returns true if any locale supported by this build of the app is RTL.
|
public String[] getAvailableLocaleNames()
public DateTimeFormatInfo getDateTimeFormatInfo()
DateTimeFormatInfo
instance appropriate for this locale.
Note that the caller takes care of any caching so subclasses need not
bother.DateTimeFormatInfo
instancepublic String getLocaleCookieName()
locale.cookie
.public String getLocaleName()
public String getLocaleNativeDisplayName(String localeName)
localeName
- the name of the locale to lookup.public String getLocaleQueryParam()
locale.queryparam
.public LocalizedNames getLocalizedNames()
LocalizedNames
for this locale.public NumberConstants getNumberConstants()
public boolean hasAnyRTL()
Copyright © 2016. All rights reserved.