Enum PersonName.NameField

    • Enum Constant Detail

      • TITLE

        public static final PersonName.NameField TITLE
        Contains titles such as "Mr.", "Dr." (in English these typically precede the name)
        Status:
        Stable ICU 73.
      • GIVEN

        public static final PersonName.NameField GIVEN
        The given name. May contain more than one token.
        Status:
        Stable ICU 73.
      • GIVEN2

        public static final PersonName.NameField GIVEN2
        Additional given names. (In English, this is usually the "middle name" and may contain more than one word.)
        Status:
        Stable ICU 73.
      • SURNAME

        public static final PersonName.NameField SURNAME
        The surname. In Spanish, this is the patronymic surname.
        Status:
        Stable ICU 73.
      • SURNAME2

        public static final PersonName.NameField SURNAME2
        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.)
        Status:
        Stable ICU 73.
      • GENERATION

        public static final PersonName.NameField GENERATION
        Generational qualifiers that in English generally follow the actual name, such as "Jr." or "III".
        Status:
        Stable ICU 73.
      • CREDENTIALS

        public static final PersonName.NameField CREDENTIALS
        Professional qualifiers that in English generally follow the actual name, such as "M.D." or "J.D.".
        Status:
        Stable ICU 73.
    • Method Detail

      • values

        public static PersonName.NameField[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PersonName.NameField c : PersonName.NameField.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PersonName.NameField valueOf​(String name)
        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 name
        NullPointerException - if the argument is null
      • forString

        @Deprecated
        public static PersonName.NameField forString​(String name)
        Deprecated.
        This API is for ICU internal use only.
        Returns the appropriate NameField for its display name.
        Status:
        Internal. This API is ICU internal only.