Enum Name.Field
- java.lang.Object
-
- java.lang.Enum<Name.Field>
-
- org.wso2.carbon.registry.social.api.people.userprofile.model.Name.Field
-
- All Implemented Interfaces:
Serializable
,Comparable<Name.Field>
- Enclosing interface:
- Name
public static enum Name.Field extends Enum<Name.Field>
An enumeration of fields in the json name object.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDITIONAL_NAME
The additional name.FAMILY_NAME
The family name.FORMATTED
The formatted name.GIVEN_NAME
The given name.HONORIFIC_PREFIX
The honorific prefix.HONORIFIC_SUFFIX
The honorific suffix.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static Name.Field
valueOf(String name)
Returns the enum constant of this type with the specified name.static Name.Field[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADDITIONAL_NAME
public static final Name.Field ADDITIONAL_NAME
The additional name.
-
FAMILY_NAME
public static final Name.Field FAMILY_NAME
The family name.
-
GIVEN_NAME
public static final Name.Field GIVEN_NAME
The given name.
-
HONORIFIC_PREFIX
public static final Name.Field HONORIFIC_PREFIX
The honorific prefix.
-
HONORIFIC_SUFFIX
public static final Name.Field HONORIFIC_SUFFIX
The honorific suffix.
-
FORMATTED
public static final Name.Field FORMATTED
The formatted name.
-
-
Method Detail
-
values
public static Name.Field[] 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 (Name.Field c : Name.Field.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Name.Field 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 nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<Name.Field>
- See Also:
Enum.toString()
-
-