| Modifier and Type | Class and Description |
|---|---|
| public static class | SimplePersonName.Builder
A utility class for constructing a SimplePersonName. |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Locale | |
| private final PersonName. |
| Access | Constructor and Description |
|---|---|
| private | SimplePersonName(Locale nameLocale, PersonName.
Internal constructor used by the Builder object. |
| Modifier and Type | Method and Description |
|---|---|
| public static SimplePersonName. | Returns: A Builder object that can be used to construct a new SimplePersonName object.Returns a Builder object that can be used to construct a new SimplePersonName object. |
| public String | Returns: The value of the requested field, optionally modified by some or all of the requested modifiers, or null if the requested field isn't present in the name.The identifier of the requested field. nameField,An IN/OUT parameter that specifies modifiers to apply to the basic field value.
On return, this list will contain any modifiers that this object didn't handle. This class
will always return this set unmodified, unless a modified version of the requested field
was provided at construction time. modifiersImplements com. |
| public Locale | Returns: The name's locale, or null if it's unknown.Implements com. |
| public PersonName. | Returns: The name's preferred field order.Implements com. |
| private static String | makeModifiedFieldName(PersonName.
|
| private static Set | |
| public String | toString()
Overrides java.
Deprecated
This API is ICU internal only.
Returns a string representation of the object.
|
| fieldValues | back to summary |
|---|---|
| private final Map<String, String> fieldValues | |
| nameLocale | back to summary |
|---|---|
| private final Locale nameLocale | |
| preferredOrder | back to summary |
|---|---|
| private final PersonName. | |
| SimplePersonName | back to summary |
|---|---|
| private SimplePersonName(Locale nameLocale, PersonName. Internal constructor used by the Builder object. | |
| builder | back to summary |
|---|---|
| public static SimplePersonName. Returns a Builder object that can be used to construct a new SimplePersonName object.
| |
| getFieldValue | back to summary |
|---|---|
| public String getFieldValue(PersonName. Implements com. Returns one field of the name, possibly in a modified form. This class can store modified versions of fields, provided at construction time, and this function will return them. Otherwise, it ignores modifiers and relies on PersonNameFormat's default modifier handling.
| |
| getNameLocale | back to summary |
|---|---|
| public Locale getNameLocale() Implements com. Returns the locale of the name-- that is, the language or country of origin for the person being named. | |
| getPreferredOrder | back to summary |
|---|---|
| public PersonName. Implements com. Returns the preferred field order for the name. This will be DEFAULT, unless the caller sets it to something else using the builder.
| |
| makeModifiedFieldName | back to summary |
|---|---|
| private static String makeModifiedFieldName(PersonName. | |
| makeModifiersFromName | back to summary |
|---|---|
| private static Set | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Deprecated This API is ICU internal only. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private Locale | |
| private PersonName. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public SimplePersonName. | Returns: This builder.A NameField object specifying the field to set. field,A collection of FieldModifier objects for any modifiers that apply
to this field value. May be null, which is the same as the empty set. modifiers,The value for this field. value)Sets the value for one field (with optional modifiers) in the new name object. |
| public SimplePersonName | Returns: A SimplePersonName with the field values and name locale that were passed to this builder.Returns a SimplePersonName with the field values and name locale that were passed to this builder. |
| public SimplePersonName. | |
| public SimplePersonName. | Returns: This builder.The preferred order for the new name object. preferredOrderSet the preferred order for the new name object. |
| fieldValues | back to summary |
|---|---|
| private Map<String, String> fieldValues | |
| locale | back to summary |
|---|---|
| private Locale locale | |
| preferredOrder | back to summary |
|---|---|
| private PersonName. | |
| Builder | back to summary |
|---|---|
| private Builder() | |
| addField | back to summary |
|---|---|
| public SimplePersonName. Sets the value for one field (with optional modifiers) in the new name object.
| |
| build | back to summary |
|---|---|
| public SimplePersonName build() Returns a SimplePersonName with the field values and name locale that were passed to this builder.
| |
| setLocale | back to summary |
|---|---|
| public SimplePersonName. Set the locale for the new name object.
| |
| setPreferredOrder | back to summary |
|---|---|
| public SimplePersonName. Set the preferred order for the new name object.
| |