Package com.ibm.icu.text
Enum PersonName.NameField
- All Implemented Interfaces:
Serializable
,Comparable<PersonName.NameField>
,java.lang.constant.Constable
- Enclosing interface:
- PersonName
Deprecated.
This API is for technology preview only.
Identifiers for the name fields supported by the PersonName object.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.This API is for technology preview only.Deprecated.This API is for technology preview only.Deprecated.This API is for technology preview only.Deprecated.This API is for technology preview only.Deprecated.This API is for technology preview only.Deprecated.This API is for technology preview only.Deprecated.This API is for technology preview only. -
Method Summary
Modifier and TypeMethodDescriptionstatic PersonName.NameField
Deprecated.This API is for ICU internal use only.toString()
Deprecated.This API is for technology preview only.static PersonName.NameField
Deprecated.Returns the enum constant of this type with the specified name.static PersonName.NameField[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PREFIX
Deprecated.This API is for technology preview only.Contains titles and other words that precede the actual name, such as "Mr." -
GIVEN
Deprecated.This API is for technology preview only.The given name. May contain more than one token. -
GIVEN2
Deprecated.This API is for technology preview only.Additional given names. (In English, this is usually the "middle name" and may contain more than one word.) -
SURNAME
Deprecated.This API is for technology preview only.The surname. In Spanish, this is the patronymic surname. -
SURNAME2
Deprecated.This API is for technology preview only.Additional surnames. This is only used in a few languages, such as Spanish, where it is the matronymic surname. (In most languages, multiple surnames all just go in the SURNAME field.) -
SUFFIX
Deprecated.This API is for technology preview only.Generational and professional qualifiers that generally follow the actual name, such as "Jr." or "M.D." -
PREFERRED_ORDER
Deprecated.This API is for technology preview only.The preferred field order for the name. PersonName objects generally shouldn't provide this field, allowing the PersonNameFormatter to deduce the proper field order based on the locales of the name of 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. When used, the only valid values are "givenFirst" and "surnameFirst".
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
Deprecated.This API is for technology preview only.Returns the NameField's display name.- Overrides:
toString
in classEnum<PersonName.NameField>
-
forString
Deprecated.This API is for ICU internal use only.Returns the appropriate NameField for its display name.
-