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

public static enum Address.Field extends Enum<Address.Field>
The fields that represent the address object in json form.
  • Enum Constant Details

    • 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 Details

    • values

      public static Address.Field[] 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

      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