Enum AddressFieldType
- java.lang.Object
-
- java.lang.Enum<AddressFieldType>
-
- de.hybris.platform.commerceservices.address.AddressFieldType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AddressFieldType>
public enum AddressFieldType extends java.lang.Enum<AddressFieldType>
Enum for the various the address fields.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDRESS_LINE1ADDRESS_LINE2CITYCOUNTRYFIRST_NAMELAST_NAMEREGIONTITLE_CODEUNKNOWNZIP_CODE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetTypeString()static AddressFieldTypelookup(java.lang.String typeKey)static AddressFieldTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AddressFieldType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TITLE_CODE
public static final AddressFieldType TITLE_CODE
-
FIRST_NAME
public static final AddressFieldType FIRST_NAME
-
LAST_NAME
public static final AddressFieldType LAST_NAME
-
ADDRESS_LINE1
public static final AddressFieldType ADDRESS_LINE1
-
ADDRESS_LINE2
public static final AddressFieldType ADDRESS_LINE2
-
CITY
public static final AddressFieldType CITY
-
REGION
public static final AddressFieldType REGION
-
ZIP_CODE
public static final AddressFieldType ZIP_CODE
-
COUNTRY
public static final AddressFieldType COUNTRY
-
UNKNOWN
public static final AddressFieldType UNKNOWN
-
-
Method Detail
-
values
public static AddressFieldType[] 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 (AddressFieldType c : AddressFieldType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddressFieldType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getTypeString
public java.lang.String getTypeString()
-
lookup
public static AddressFieldType lookup(java.lang.String typeKey)
-
-