|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.icu.text.LocaleDisplayNames
public abstract class LocaleDisplayNames
Returns display names of ULocales and components of ULocales. For
more information on language, script, region, variant, key, and
values, see ULocale
.
Nested Class Summary | |
---|---|
static class |
LocaleDisplayNames.DialectHandling
Enum used in getInstance(ULocale, DialectHandling) . |
Constructor Summary | |
---|---|
protected |
LocaleDisplayNames()
Deprecated. This API is ICU internal only. |
Method Summary | |
---|---|
abstract LocaleDisplayNames.DialectHandling |
getDialectHandling()
Returns the dialect handling used in the display names. |
static LocaleDisplayNames |
getInstance(ULocale locale)
Convenience overload of getInstance(ULocale, DialectHandling) that specifies
STANDARD dialect handling. |
static LocaleDisplayNames |
getInstance(ULocale locale,
LocaleDisplayNames.DialectHandling dialectHandling)
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided dialectHandling. |
abstract ULocale |
getLocale()
Returns the locale used to determine the display names. |
abstract String |
keyDisplayName(String key)
Returns the display name of the provided locale key. |
abstract String |
keyValueDisplayName(String key,
String value)
Returns the display name of the provided value (used with the provided key). |
abstract String |
languageDisplayName(String lang)
Returns the display name of the provided language code. |
abstract String |
localeDisplayName(Locale locale)
Returns the display name of the provided locale. |
abstract String |
localeDisplayName(String localeId)
Returns the display name of the provided locale id. |
abstract String |
localeDisplayName(ULocale locale)
Returns the display name of the provided ulocale. |
abstract String |
regionDisplayName(String region)
Returns the display name of the provided region code. |
abstract String |
scriptDisplayName(int scriptCode)
Returns the display name of the provided script code. |
abstract String |
scriptDisplayName(String script)
Returns the display name of the provided script code. |
abstract String |
variantDisplayName(String variant)
Returns the display name of the provided variant. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LocaleDisplayNames()
Method Detail |
---|
public static LocaleDisplayNames getInstance(ULocale locale)
getInstance(ULocale, DialectHandling)
that specifies
STANDARD dialect handling.
locale
- the display locale
public static LocaleDisplayNames getInstance(ULocale locale, LocaleDisplayNames.DialectHandling dialectHandling)
locale
- the display localedialectHandling
- how to select names for locales
public abstract ULocale getLocale()
getInstance(com.ibm.icu.util.ULocale)
.
public abstract LocaleDisplayNames.DialectHandling getDialectHandling()
public abstract String localeDisplayName(ULocale locale)
locale
- the locale whose display name to return
public abstract String localeDisplayName(Locale locale)
locale
- the locale whose display name to return
public abstract String localeDisplayName(String localeId)
localeId
- the id of the locale whose display name to return
public abstract String languageDisplayName(String lang)
lang
- the language code
public abstract String scriptDisplayName(String script)
script
- the script code
public abstract String scriptDisplayName(int scriptCode)
UScript
for recognized script codes.
scriptCode
- the script code number
public abstract String regionDisplayName(String region)
region
- the region code
public abstract String variantDisplayName(String variant)
variant
- the variant string
public abstract String keyDisplayName(String key)
key
- the locale key name
public abstract String keyValueDisplayName(String key, String value)
key
- the locale key namevalue
- the locale key's value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |