public class SimplePersonName extends Object implements PersonName
Modifier and Type | Class and Description |
---|---|
static class |
SimplePersonName.Builder
A utility class for constructing a SimplePersonName.
|
PersonName.FieldModifier, PersonName.NameField, PersonName.PreferredOrder
Modifier and Type | Method and Description |
---|---|
static SimplePersonName.Builder |
builder()
Returns a Builder object that can be used to construct a new SimplePersonName object.
|
String |
getFieldValue(PersonName.NameField nameField,
Set<PersonName.FieldModifier> modifiers)
Returns one field of the name, possibly in a modified form.
|
Locale |
getNameLocale()
Returns the locale of the name-- that is, the language or country of origin for the person being named.
|
PersonName.PreferredOrder |
getPreferredOrder()
Returns the preferred field order for the name.
|
String |
toString()
Deprecated.
This API is ICU internal only.
|
public static SimplePersonName.Builder builder()
public Locale getNameLocale()
getNameLocale
in interface PersonName
public PersonName.PreferredOrder getPreferredOrder()
getPreferredOrder
in interface PersonName
public String getFieldValue(PersonName.NameField nameField, Set<PersonName.FieldModifier> modifiers)
getFieldValue
in interface PersonName
nameField
- The identifier of the requested field.modifiers
- 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.@Deprecated public String toString()
Copyright © 2016 Unicode, Inc. and others.