Locale
class.
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
public abstract String | Returns: the name of the given country code for the specified locale, or null if it's not available.the country(region) code string in the form of two
upper-case letters between 'A' (U+0041) and 'Z' (U+005A) or the UN M.49 area code
in the form of three digit letters between '0' (U+0030) and '9' (U+0039). countryCode, Locale the desired locale locale)Returns a localized name for the given IETF BCP47 region code (either ISO 3166 country code or UN M.49 area codes) and the given locale that is appropriate for display to the user. |
public abstract String | Returns: the name of the given language code for the specified locale, or null if it's not available.the language code string in the form of two to eight
lower-case letters between 'a' (U+0061) and 'z' (U+007A) languageCode, Locale the desired locale locale)Returns a localized name for the given IETF BCP47 language code and the given locale that is appropriate for display to the user. |
public String | Returns: the name of the given script code for the specified locale, or null if it's not available.the four letter script code string in the form of title-case
letters (the first letter is upper-case character between 'A' (U+0041) and
'Z' (U+005A) followed by three lower-case character between 'a' (U+0061)
and 'z' (U+007A)). scriptCode, Locale the desired locale locale)Returns a localized name for the given IETF BCP47 script code and the given locale that is appropriate for display to the user. |
public String | Returns: the name of the given key string for the specified locale, or null if it's not available.the Unicode Extension key, not null. key, Locale the desired locale, not null. locale)Returns a localized name for the given Unicode extension key, and the given locale that is appropriate for display to the user. |
public String | Returns: the name of the given type string for the specified locale, or null if it's not available.the Unicode Extension type, not null. type, String the Unicode Extension key for this key, Locale type , not null.the desired locale, not null. locale)Returns a localized name for the given Unicode extension type, and the given locale that is appropriate for display to the user. |
public abstract String | Returns: the name of the given variant string for the specified locale, or null if it's not available.the variant string variant, Locale the desired locale locale)Returns a localized name for the given variant code and the given locale that is appropriate for display to the user. |
LocaleNameProvider | back to summary |
---|---|
protected LocaleNameProvider() Sole constructor. (For invocation by subclass constructors, typically implicit.) |
getDisplayCountry | back to summary |
---|---|
public abstract String getDisplayCountry(String countryCode, Locale locale) Returns a localized name for the given
IETF BCP47 region code (either ISO 3166 country code or UN M.49 area
codes) and the given locale that is appropriate for display to the user.
For example, if
|
getDisplayLanguage | back to summary |
---|---|
public abstract String getDisplayLanguage(String languageCode, Locale locale) Returns a localized name for the given
IETF BCP47 language code and the given locale that is appropriate for
display to the user.
For example, if
|
getDisplayScript | back to summary |
---|---|
public String getDisplayScript(String scriptCode, Locale locale) Returns a localized name for the given
IETF BCP47 script code and the given locale that is appropriate for
display to the user.
For example, if
|
getDisplayUnicodeExtensionKey | back to summary |
---|---|
public String getDisplayUnicodeExtensionKey(String key, Locale locale) Returns a localized name for the given
Unicode extension key,
and the given locale that is appropriate for display to the user.
If the name returned cannot be localized according to Implementation Specification the default implementation returns
|
getDisplayUnicodeExtensionType | back to summary |
---|---|
public String getDisplayUnicodeExtensionType(String type, String key, Locale locale) Returns a localized name for the given
Unicode extension type,
and the given locale that is appropriate for display to the user.
If the name returned cannot be localized according to Implementation Specification the default implementation returns
|
getDisplayVariant | back to summary |
---|---|
public abstract String getDisplayVariant(String variant, Locale locale) Returns a localized name for the given variant code and the given locale that
is appropriate for display to the user.
If the name returned cannot be localized according to
|