Package org.cyclos.model.users.addresses
Enum AddressFields
- java.lang.Object
-
- java.lang.Enum<AddressFields>
-
- org.cyclos.model.users.addresses.AddressFields
-
- All Implemented Interfaces:
Serializable,Comparable<AddressFields>,HasMessageKey
public enum AddressFields extends Enum<AddressFields> implements HasMessageKey
enumerator for address fields
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDRESS_LINE_1ADDRESS_LINE_2BUILDING_NUMBERCITYCOMPLEMENTCOUNTRYNEIGHBORHOODPO_BOXREGIONSTREETZIP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddressFieldsfindByInternalName(String internalName)Finds an address field by its internal.MessageKeygetMessageKey()StringinternalName()AddressQueryFieldqueryField()static AddressFieldsvalueOf(String name)Returns the enum constant of this type with the specified name.static AddressFields[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADDRESS_LINE_1
public static final AddressFields ADDRESS_LINE_1
-
ADDRESS_LINE_2
public static final AddressFields ADDRESS_LINE_2
-
STREET
public static final AddressFields STREET
-
BUILDING_NUMBER
public static final AddressFields BUILDING_NUMBER
-
COMPLEMENT
public static final AddressFields COMPLEMENT
-
NEIGHBORHOOD
public static final AddressFields NEIGHBORHOOD
-
PO_BOX
public static final AddressFields PO_BOX
-
ZIP
public static final AddressFields ZIP
-
CITY
public static final AddressFields CITY
-
REGION
public static final AddressFields REGION
-
COUNTRY
public static final AddressFields COUNTRY
-
-
Method Detail
-
values
public static AddressFields[] 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 (AddressFields c : AddressFields.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddressFields 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
-
findByInternalName
public static AddressFields findByInternalName(String internalName)
Finds an address field by its internal. E.g.: The internal of ADDRESS_LINE_1 is: addressLine1
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
internalName
public String internalName()
-
queryField
public AddressQueryField queryField()
-
-