Enum RecipientData.Attribute
- java.lang.Object
-
- java.lang.Enum<RecipientData.Attribute>
-
- com.levigo.jadice.server.javamail.domain.RecipientData.Attribute
-
- All Implemented Interfaces:
Serializable
,Comparable<RecipientData.Attribute>
- Enclosing class:
- RecipientData
public static enum RecipientData.Attribute extends Enum<RecipientData.Attribute>
Instead of creating a fixed structure here, we create a mapping of "attribute"-names to their mapi key counterparts.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISPLAY_NAME
EMAIL_ADDRESS
RECIPIENT_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<Integer,RecipientData.Attribute>
getMapiPropIdToAttributeMap()
Generates a reverse attribute hash map that maps mapiPropIds to Attributes.int
getMapiPropKey()
static RecipientData.Attribute
valueOf(String name)
Returns the enum constant of this type with the specified name.static RecipientData.Attribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMAIL_ADDRESS
public static final RecipientData.Attribute EMAIL_ADDRESS
-
DISPLAY_NAME
public static final RecipientData.Attribute DISPLAY_NAME
-
RECIPIENT_TYPE
public static final RecipientData.Attribute RECIPIENT_TYPE
-
-
Method Detail
-
values
public static RecipientData.Attribute[] 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 (RecipientData.Attribute c : RecipientData.Attribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RecipientData.Attribute 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
-
getMapiPropKey
public int getMapiPropKey()
-
getMapiPropIdToAttributeMap
public static Map<Integer,RecipientData.Attribute> getMapiPropIdToAttributeMap()
Generates a reverse attribute hash map that maps mapiPropIds to Attributes.- Returns:
- the reverse attribute hash map.
-
-