com.openexchange.messaging
Enum MessagingHeader.HeaderType

java.lang.Object
  extended by java.lang.Enum<MessagingHeader.HeaderType>
      extended by com.openexchange.messaging.MessagingHeader.HeaderType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MessagingHeader.HeaderType>
Enclosing interface:
MessagingHeader

public static enum MessagingHeader.HeaderType
extends java.lang.Enum<MessagingHeader.HeaderType>

The header type.


Enum Constant Summary
ADDRESS
          The header value is an address.
DATE
          The header value is a date.
PARAMETERIZED
          The header contains parameter.
PLAIN
          The header value is a usual string.
 
Method Summary
static MessagingHeader.HeaderType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MessagingHeader.HeaderType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PLAIN

public static final MessagingHeader.HeaderType PLAIN
The header value is a usual string.


DATE

public static final MessagingHeader.HeaderType DATE
The header value is a date.


ADDRESS

public static final MessagingHeader.HeaderType ADDRESS
The header value is an address.


PARAMETERIZED

public static final MessagingHeader.HeaderType PARAMETERIZED
The header contains parameter.

Method Detail

values

public static final MessagingHeader.HeaderType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MessagingHeader.HeaderType c : MessagingHeader.HeaderType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MessagingHeader.HeaderType 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 name