public static enum PersonName.NameField extends Enum<PersonName.NameField>
Enum Constant and Description |
---|
CREDENTIALS
Professional qualifiers that in English generally follow the actual name,
such as "M.D." or "J.D.".
|
GENERATION
Generational qualifiers that in English generally follow the actual name,
such as "Jr." or "III".
|
GIVEN
The given name.
|
GIVEN2
Additional given names.
|
SURNAME
The surname.
|
SURNAME2
Additional surnames.
|
TITLE
Contains titles such as "Mr
|
Modifier and Type | Method and Description |
---|---|
static PersonName.NameField |
forString(String name)
Deprecated.
This API is for ICU internal use only.
|
String |
toString()
Returns the NameField's display name.
|
static PersonName.NameField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersonName.NameField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersonName.NameField TITLE
public static final PersonName.NameField GIVEN
public static final PersonName.NameField GIVEN2
public static final PersonName.NameField SURNAME
public static final PersonName.NameField SURNAME2
public static final PersonName.NameField GENERATION
public static final PersonName.NameField CREDENTIALS
public static PersonName.NameField[] values()
for (PersonName.NameField c : PersonName.NameField.values()) System.out.println(c);
public static PersonName.NameField valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<PersonName.NameField>
@Deprecated public static PersonName.NameField forString(String name)
Copyright © 2016 Unicode, Inc. and others.