| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final PersonNameFormatter. | |
| private final String | |
| private final PersonNameFormatter. | |
| private final Set | |
| private final PersonNamePattern[] | |
| private final String | |
| private final String | |
| private final PersonNameFormatter. | |
| private final Locale | |
| private final String | |
| pack-priv static final Set | |
| private final Set | |
| private final PersonNamePattern[] | |
| private final PersonNameFormatter. |
| Access | Constructor and Description |
|---|---|
| public | PersonNameFormatterImpl(Locale locale, PersonNameFormatter.
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String[] | Returns: The resource's value, as an array of Strings.An ICUResourceBundle of type STRING or ARRAY. If ARRAY, this function just returns it
as a string array. If STRING, it returns a one-element array containing that string. resource)Returns the value of the resource, as a string array. |
| private boolean | formattingLocaleExists(Locale formattingLocale)
Returns true if there's actual name formatting data for the specified locale (i.e., when we fetch the resource data, we don't fall back to root). |
| public String | |
| private PersonNamePattern | |
| public PersonNameFormatter. | |
| public PersonNameFormatter. | |
| public String | |
| public String | |
| public PersonNameFormatter. | |
| public Locale | |
| private Locale | Returns: The name's (real or guessed) locale.The name for which we need the locale name)Internal function to figure out the name's locale when the name doesn't specify it. |
| private String | Returns: The four-letter script code for the name.The name for which we need the script name)Internal function to figure out the name's script by examining its characters. |
| public boolean | |
| public PersonNameFormatter. | |
| private boolean | localesMatch(Locale nameLocale, Locale formatterLocale)
Returns true if the two locales should be considered equivalent for space-replacement purposes. |
| private boolean | Returns: If true, use given-first order to format the name; if false, use surname-first order.The name to be formatted. name)Returns the field order to use when formatting this name, taking into account the name's preferredOrder field, as well as the name and formatter's respective locales. |
| private boolean | nameScriptMatchesLocale(String nameScriptID, Locale formatterLocale)
Returns true if the characters in the name match one of the scripts for the specified locale. |
| private Locale | |
| public boolean | |
| public String |
| capitalizeSurname | back to summary |
|---|---|
| private final boolean capitalizeSurname | |
| displayOrder | back to summary |
|---|---|
| private final PersonNameFormatter. | |
| foreignSpaceReplacement | back to summary |
|---|---|
| private final String foreignSpaceReplacement | |
| formality | back to summary |
|---|---|
| private final PersonNameFormatter. | |
| gnFirstLocales | back to summary |
|---|---|
| private final Set<String> gnFirstLocales | |
| gnFirstPatterns | back to summary |
|---|---|
| private final PersonNamePattern[] gnFirstPatterns | |
| initialPattern | back to summary |
|---|---|
| private final String initialPattern | |
| initialSequencePattern | back to summary |
|---|---|
| private final String initialSequencePattern | |
| length | back to summary |
|---|---|
| private final PersonNameFormatter. | |
| locale | back to summary |
|---|---|
| private final Locale locale | |
| nativeSpaceReplacement | back to summary |
|---|---|
| private final String nativeSpaceReplacement | |
| NON_DEFAULT_SCRIPTS | back to summary |
|---|---|
| pack-priv static final Set<String> NON_DEFAULT_SCRIPTS | |
| snFirstLocales | back to summary |
|---|---|
| private final Set<String> snFirstLocales | |
| snFirstPatterns | back to summary |
|---|---|
| private final PersonNamePattern[] snFirstPatterns | |
| usage | back to summary |
|---|---|
| private final PersonNameFormatter. | |
| PersonNameFormatterImpl | back to summary |
|---|---|
| public PersonNameFormatterImpl(Locale locale, PersonNameFormatter. | |
| PersonNameFormatterImpl | back to summary |
|---|---|
| public PersonNameFormatterImpl(Locale locale, String[] gnFirstPatterns, String[] snFirstPatterns, String[] gnFirstLocales, String[] snFirstLocales) THIS IS A DUMMY CONSTRUCTOR JUST FOR THE USE OF THE UNIT TESTS TO CHECK SOME OF THE INTERNAL IMPLEMENTATION! | |
| asStringArray | back to summary |
|---|---|
| private String[] asStringArray(ICUResourceBundle resource) Returns the value of the resource, as a string array.
| |
| formattingLocaleExists | back to summary |
|---|---|
| private boolean formattingLocaleExists(Locale formattingLocale) Returns true if there's actual name formatting data for the specified locale (i.e., when we fetch the resource data, we don't fall back to root). | |
| formatToString | back to summary |
|---|---|
| public String formatToString(PersonName name) | |
| getBestPattern | back to summary |
|---|---|
| private PersonNamePattern getBestPattern(PersonNamePattern[] patterns, PersonName name) | |
| getDisplayOrder | back to summary |
|---|---|
| public PersonNameFormatter. | |
| getFormality | back to summary |
|---|---|
| public PersonNameFormatter. | |
| getInitialPattern | back to summary |
|---|---|
| public String getInitialPattern() | |
| getInitialSequencePattern | back to summary |
|---|---|
| public String getInitialSequencePattern() | |
| getLength | back to summary |
|---|---|
| public PersonNameFormatter. | |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() | |
| getNameLocale | back to summary |
|---|---|
| private Locale getNameLocale(PersonName name) Internal function to figure out the name's locale when the name doesn't specify it. (Note that this code assumes that if the locale is specified, it includes a language code.)
| |
| getNameScript | back to summary |
|---|---|
| private String getNameScript(PersonName name) Internal function to figure out the name's script by examining its characters.
| |
| getSurnameAllCaps | back to summary |
|---|---|
| public boolean getSurnameAllCaps() | |
| getUsage | back to summary |
|---|---|
| public PersonNameFormatter. | |
| localesMatch | back to summary |
|---|---|
| private boolean localesMatch(Locale nameLocale, Locale formatterLocale) Returns true if the two locales should be considered equivalent for space-replacement purposes. | |
| nameIsGnFirst | back to summary |
|---|---|
| private boolean nameIsGnFirst(PersonName name) Returns the field order to use when formatting this name, taking into account the name's preferredOrder field, as well as the name and formatter's respective locales.
| |
| nameScriptMatchesLocale | back to summary |
|---|---|
| private boolean nameScriptMatchesLocale(String nameScriptID, Locale formatterLocale) Returns true if the characters in the name match one of the scripts for the specified locale. | |
| newLocaleWithScript | back to summary |
|---|---|
| private Locale newLocaleWithScript(Locale oldLocale, String scriptCode, String regionCode) | |
| shouldCapitalizeSurname | back to summary |
|---|---|
| public boolean shouldCapitalizeSurname() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |