Enum BodyType.Field
java.lang.Object
java.lang.Enum<BodyType.Field>
org.wso2.carbon.registry.social.api.people.userprofile.model.BodyType.Field
- All Implemented Interfaces:
Serializable,Comparable<BodyType.Field>,java.lang.constant.Constable
- Enclosing interface:
BodyType
The fields that represent the person object in serialized form.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionthe field name for build.the field name for build.the field name for hairColor.the field name for height.the field name for weight. -
Method Summary
Modifier and TypeMethodDescriptiontoString()emit the field as a json element.static BodyType.FieldReturns the enum constant of this type with the specified name.static BodyType.Field[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BUILD
the field name for build. -
EYE_COLOR
the field name for build. -
HAIR_COLOR
the field name for hairColor. -
HEIGHT
the field name for height. -
WEIGHT
the field name for weight.
-
-
Method Details
-
values
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
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
emit the field as a json element.- Overrides:
toStringin classEnum<BodyType.Field>- Returns:
- the field name
-