public class SimplePersonName extends java.lang.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.
|
java.lang.String |
getFieldValue(PersonName.NameField nameField,
java.util.Set<PersonName.FieldModifier> modifiers)
Returns one field of the name, possibly in a modified form.
|
java.util.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.
|
java.lang.String |
toString()
Deprecated.
This API is ICU internal only.
|
public static SimplePersonName.Builder builder()
public java.util.Locale getNameLocale()
getNameLocale in interface PersonNamepublic PersonName.PreferredOrder getPreferredOrder()
getPreferredOrder in interface PersonNamepublic java.lang.String getFieldValue(PersonName.NameField nameField, java.util.Set<PersonName.FieldModifier> modifiers)
getFieldValue in interface PersonNamenameField - 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 java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2016 Unicode, Inc. and others.