org.wso2.carbon.registry.social.api.people.userprofile.model
Enum Address.Field

java.lang.Object
  extended by java.lang.Enum<Address.Field>
      extended by 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
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
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null

toString

public String toString()
emit the field as a json element.

Overrides:
toString in class Enum<Address.Field>
Returns:
the field name


Copyright © 2013 WSO2 Inc. All Rights Reserved.