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>
- Enclosing interface:
- Address
public static enum Address.Field extends Enum<Address.Field>
The fields that represent the address object in json form.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COUNTRY
the field name for country.FORMATTED
the field name for formatted.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.PRIMARY
the field name for primary.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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
emit the field as a json element.static Address.Field
valueOf(String name)
Returns 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 Detail
-
COUNTRY
public static final Address.Field COUNTRY
the field name for country.
-
LATITUDE
public static final Address.Field LATITUDE
the field name for latitude.
-
LOCALITY
public static final Address.Field LOCALITY
the field name for locality.
-
LONGITUDE
public static final Address.Field LONGITUDE
the field name for longitude.
-
POSTAL_CODE
public static final Address.Field POSTAL_CODE
the field name for postalCode.
-
REGION
public static final Address.Field REGION
the field name for region.
-
STREET_ADDRESS
public static final Address.Field STREET_ADDRESS
the feild name for streetAddress this field may be multiple lines.
-
TYPE
public static final Address.Field TYPE
the field name for type.
-
FORMATTED
public static final Address.Field FORMATTED
the field name for formatted.
-
PRIMARY
public static final Address.Field PRIMARY
the field name for primary.
-
-
Method Detail
-
values
public static Address.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 (Address.Field c : Address.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 Address.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()
emit the field as a json element.- Overrides:
toString
in classEnum<Address.Field>
- Returns:
- the field name
-
-