| Modifier and Type | Class and Description |
|---|---|
| private static interface | PersonNamePattern.Element
A single element in a NamePattern. |
| private static class | PersonNamePattern.GivenToSurnamePersonName
Internal class used when formatting a mononym (a PersonName object that only has a given-name field). |
| private static class | PersonNamePattern.LiteralText
Literal text from a name pattern. |
| private static class | PersonNamePattern.NameFieldImpl
An actual name field in a NamePattern (i.e., the stuff represented in the pattern by text in braces). |
| Modifier and Type | Field and Description |
|---|---|
| private PersonNamePattern. | |
| private String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private String | coalesce(StringBuilder
The literal text before the omitted field. s1, StringBuilder The literal text after the omitted field. s2)Stitches together the literal text on either side of an omitted field by deleting any non-whitespace characters immediately neighboring the omitted field and coalescing any adjacent spaces at the join point down to one. |
| private boolean | |
| public String | |
| private PersonName | |
| public static PersonNamePattern[] | |
| public int | |
| public int | |
| public String |
| patternElements | back to summary |
|---|---|
| private PersonNamePattern. | |
| patternText | back to summary |
|---|---|
| private String patternText | |
| PersonNamePattern | back to summary |
|---|---|
| private PersonNamePattern(String patternText, PersonNameFormatterImpl formatterImpl) | |
| coalesce | back to summary |
|---|---|
| private String coalesce(StringBuilder s1, StringBuilder s2) Stitches together the literal text on either side of an omitted field by deleting any non-whitespace characters immediately neighboring the omitted field and coalescing any adjacent spaces at the join point down to one.
| |
| endsWith | back to summary |
|---|---|
| private boolean endsWith(StringBuilder s1, StringBuilder s2) Returns true if s1 ends with s2. | |
| format | back to summary |
|---|---|
| public String format(PersonName name) | |
| hackNameForEmptyFields | back to summary |
|---|---|
| private PersonName hackNameForEmptyFields(PersonName originalName) | |
| makePatterns | back to summary |
|---|---|
| public static PersonNamePattern[] makePatterns(String[] patternText, PersonNameFormatterImpl formatterImpl) | |
| numEmptyFields | back to summary |
|---|---|
| public int numEmptyFields(PersonName name) | |
| numPopulatedFields | back to summary |
|---|---|
| public int numPopulatedFields(PersonName name) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | |
| public boolean |
| format | back to summary |
|---|---|
| public String format(PersonName name) | |
| isLiteral | back to summary |
|---|---|
| public boolean isLiteral() | |
| isPopulated | back to summary |
|---|---|
| public boolean isPopulated(PersonName name) | |
| Modifier and Type | Field and Description |
|---|---|
| private PersonName |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getFieldValue(PersonName.
The identifier of the requested field. identifier,An IN/OUT parameter that specifies modifiers to apply to the basic field value.
An implementing class can choose to handle or ignore any modifiers; it should modify
the passed-in Set so that on exit, it contains only the requested modifiers that it
DIDN'T handle. This parameter may not be null, and must either be mutable or empty. modifiersImplements com. |
| public Locale | getNameLocale()
Implements com. |
| public PersonName. | getPreferredOrder()
Implements com. |
| public String |
| underlyingPersonName | back to summary |
|---|---|
| private PersonName underlyingPersonName | |
| GivenToSurnamePersonName | back to summary |
|---|---|
| public GivenToSurnamePersonName(PersonName underlyingPersonName) | |
| getFieldValue | back to summary |
|---|---|
| public String getFieldValue(PersonName. Implements com. Doc from com. Returns one field of the name, possibly in a modified form.
| |
| getNameLocale | back to summary |
|---|---|
| public Locale getNameLocale() Implements com. Doc from com. Returns the locale of the name-- that is, the language or country of origin for the person being named. An implementing class is allowed to return null here to indicate the name's locale is unknown. | |
| getPreferredOrder | back to summary |
|---|---|
| public PersonName. Implements com. Doc from com. Returns the preferred field order for the name. PersonName objects should generally return DEFAULT, allowing the PersonNameFormatter to deduce the peoper field order based on the locales of the name and the formatter. But this can be used to force a particular field order, generally in cases where the deduction logic in PersonNameFormatter would guess wrong.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | |
| public boolean | |
| public String |
| text | back to summary |
|---|---|
| private String text | |
| LiteralText | back to summary |
|---|---|
| public LiteralText(String text) | |
| format | back to summary |
|---|---|
| public String format(PersonName name) Implements com. | |
| isLiteral | back to summary |
|---|---|
| public boolean isLiteral() Implements com. | |
| isPopulated | back to summary |
|---|---|
| public boolean isPopulated(PersonName name) Implements com. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private PersonName. | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | |
| public boolean | |
| public String |
| fieldID | back to summary |
|---|---|
| private PersonName. | |
| modifiers | back to summary |
|---|---|
| private Map<PersonName. | |
| NameFieldImpl | back to summary |
|---|---|
| public NameFieldImpl(String fieldNameAndModifiers, PersonNameFormatterImpl formatterImpl) | |
| format | back to summary |
|---|---|
| public String format(PersonName name) Implements com. | |
| isLiteral | back to summary |
|---|---|
| public boolean isLiteral() Implements com. | |
| isPopulated | back to summary |
|---|---|
| public boolean isPopulated(PersonName name) Implements com. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |