Top Inners Fields Constructors Methods
com.ibm.icu.impl

public Class LocaleDisplayNamesImpl

extends LocaleDisplayNames
Class Inheritance
Imports
java.util.ArrayList, .Collections, .Comparator, .HashMap, .HashSet, .Iterator, .List, .Locale, .Map, .Map.Entry, .MissingResourceException, .Set, com.ibm.icu.impl.CurrencyData.CurrencyDisplayInfo, com.ibm.icu.impl.locale.AsciiUtil, com.ibm.icu.lang.UCharacter, .UScript, com.ibm.icu.text.BreakIterator, .CaseMap, .DisplayContext, .DisplayContext.Type, .LocaleDisplayNames, com.ibm.icu.util.ULocale, .UResourceBundle

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private class
private static enum
LocaleDisplayNamesImpl.CapitalizationContextUsage

Capitalization context usage types for locale display names

public static class
pack-priv abstract static class
public static enum
pack-priv static class
pack-priv abstract static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final LocaleDisplayNamesImpl.Cache
private final DisplayContext
private transient BreakIterator
capitalizationBrkIter

BreakIterator to use for capitalization

private boolean[]
capitalizationUsage

Capitalization transforms.

private static final Map<String, LocaleDisplayNamesImpl.CapitalizationContextUsage>
contextUsageTypeMap

Map from resource key to CapitalizationContextUsage value

private final CurrencyData.CurrencyDisplayInfo
private final LocaleDisplayNames.DialectHandling
private final String
private final char
private final char
private final char
private final char
private final String
private final LocaleDisplayNamesImpl.DataTable
private final ULocale
private final DisplayContext
private final LocaleDisplayNamesImpl.DataTable
private final String
private final DisplayContext
private static final CaseMap.Title

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
private String
private StringBuilder
public DisplayContext
getContext(DisplayContext.Type
the DisplayContext.Type whose value to return
type
)

Implements abstract com.ibm.icu.text.LocaleDisplayNames.getContext.

Returns the current value for a specified DisplayContext.Type.
public LocaleDisplayNames.DialectHandling
getDialectHandling()

Implements abstract com.ibm.icu.text.LocaleDisplayNames.getDialectHandling.

Returns the dialect handling used in the display names.
public static LocaleDisplayNames
getInstance(ULocale
the display locale
locale
,
LocaleDisplayNames.DialectHandling
how to select names for locales
dialectHandling
)

Hides com.ibm.icu.text.LocaleDisplayNames.getInstance.

Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided dialectHandling.
public static LocaleDisplayNames
getInstance(ULocale
the display locale
locale
,
DisplayContext...
one or more context settings (e.g. for dialect handling, capitalization, etc.
contexts
)

Hides com.ibm.icu.text.LocaleDisplayNames.getInstance.

Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided DisplayContext settings
public ULocale
getLocale()

Implements abstract com.ibm.icu.text.LocaleDisplayNames.getLocale.

Returns the locale used to determine the display names.
public List<LocaleDisplayNames.UiListItem>
getUiListCompareWholeItems(Set<ULocale>
a list of locales to present in a UI list. The casing uses the settings in the LocaleDisplayNames instance.
localeSet
,
Comparator<LocaleDisplayNames.UiListItem>
how to sort the UiListItems in the result.
comparator
)

Implements abstract com.ibm.icu.text.LocaleDisplayNames.getUiListCompareWholeItems.

Return a list of information used to construct a UI list of locale names, providing more access to control the sorting.
public static boolean
private String
keyDisplayName(String key, boolean skipAdjust)

public String
keyDisplayName(String
the locale key name
key
)

Implements abstract com.ibm.icu.text.LocaleDisplayNames.keyDisplayName.

Returns the display name of the provided locale key.
private String
keyValueDisplayName(String key, String value, boolean skipAdjust)

public String
keyValueDisplayName(String
the locale key name
key
,
String
the locale key's value
value
)

Implements abstract com.ibm.icu.text.LocaleDisplayNames.keyValueDisplayName.

Returns the display name of the provided value (used with the provided key).
public String
languageDisplayName(String
the language code
lang
)

Implements abstract com.ibm.icu.text.LocaleDisplayNames.languageDisplayName.

Returns the display name of the provided language code.
public String
localeDisplayName(ULocale
the locale whose display name to return
locale
)

Implements abstract com.ibm.icu.text.LocaleDisplayNames.localeDisplayName.

Returns the display name of the provided ulocale.
public String
localeDisplayName(Locale
the locale whose display name to return
locale
)

Implements abstract com.ibm.icu.text.LocaleDisplayNames.localeDisplayName.

Returns the display name of the provided locale.
public String
localeDisplayName(String
the id of the locale whose display name to return
localeId
)

Implements abstract com.ibm.icu.text.LocaleDisplayNames.localeDisplayName.

Returns the display name of the provided locale id. When no display names are available for all or portions of the original locale ID, those portions may be used directly (possibly in a more canonical form) as part of the returned display name.
private String
private String
localeIdName(String localeId)

private LocaleDisplayNames.UiListItem
newRow(ULocale modified, DisplayContext capContext)

private String
regionDisplayName(String region, boolean skipAdjust)

public String
regionDisplayName(String
the region code
region
)

Implements abstract com.ibm.icu.text.LocaleDisplayNames.regionDisplayName.

Returns the display name of the provided region code.
public String
scriptDisplayName(String
the script code
script
)

Implements abstract com.ibm.icu.text.LocaleDisplayNames.scriptDisplayName.

Returns the display name of the provided script code.
public String
scriptDisplayName(int
the script code number
scriptCode
)

Implements abstract com.ibm.icu.text.LocaleDisplayNames.scriptDisplayName.

Returns the display name of the provided script code.
private String
scriptDisplayNameInContext(String script, boolean skipAdjust)

public String
scriptDisplayNameInContext(String
the script code
script
)

Overrides com.ibm.icu.text.LocaleDisplayNames.scriptDisplayNameInContext.

Returns the display name of the provided script code when used in the context of a full locale name.
private static String
private String
variantDisplayName(String variant, boolean skipAdjust)

public String
variantDisplayName(String
the variant string
variant
)

Implements abstract com.ibm.icu.text.LocaleDisplayNames.variantDisplayName.

Returns the display name of the provided variant.
Inherited from com.ibm.icu.text.LocaleDisplayNames:
getInstancegetInstancegetInstancegetUiList