Enum Address.Field
java.lang.Object
java.lang.Enum<Address.Field>
org.wso2.carbon.registry.social.api.people.userprofile.model.Address.Field
- All Implemented Interfaces:
Serializable,Comparable<Address.Field>,java.lang.constant.Constable
- Enclosing interface:
Address
The fields that represent the address object in json 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 country.the field name for formatted.the field name for latitude.the field name for locality.the field name for longitude.the field name for postalCode.the field name for primary.the field name for region.the feild name for streetAddress this field may be multiple lines.the field name for type. -
Method Summary
Modifier and TypeMethodDescriptiontoString()emit the field as a json element.static Address.FieldReturns the enum constant of this type with the specified name.static Address.Field[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COUNTRY
the field name for country. -
LATITUDE
the field name for latitude. -
LOCALITY
the field name for locality. -
LONGITUDE
the field name for longitude. -
POSTAL_CODE
the field name for postalCode. -
REGION
the field name for region. -
STREET_ADDRESS
the feild name for streetAddress this field may be multiple lines. -
TYPE
the field name for type. -
FORMATTED
the field name for formatted. -
PRIMARY
the field name for primary.
-
-
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<Address.Field>- Returns:
- the field name
-