com.openexchange.mail.dataobjects.compose
Enum ComposedMailPart.ComposedPartType

java.lang.Object
  extended by java.lang.Enum<ComposedMailPart.ComposedPartType>
      extended by com.openexchange.mail.dataobjects.compose.ComposedMailPart.ComposedPartType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ComposedMailPart.ComposedPartType>
Enclosing interface:
ComposedMailPart

public static enum ComposedMailPart.ComposedPartType
extends java.lang.Enum<ComposedMailPart.ComposedPartType>

ComposedMailPart.ComposedPartType - The different SMTP parts

Author:
Thorben Betten

Enum Constant Summary
BODY
          The mail body text
DATA
          A data part
DOCUMENT
          An infostore document
FILE
          An uploaded file
REFERENCE
          A referenced mail part
 
Method Summary
static ComposedMailPart.ComposedPartType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ComposedMailPart.ComposedPartType[] 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

BODY

public static final ComposedMailPart.ComposedPartType BODY
The mail body text


FILE

public static final ComposedMailPart.ComposedPartType FILE
An uploaded file


DOCUMENT

public static final ComposedMailPart.ComposedPartType DOCUMENT
An infostore document


REFERENCE

public static final ComposedMailPart.ComposedPartType REFERENCE
A referenced mail part


DATA

public static final ComposedMailPart.ComposedPartType DATA
A data part

Method Detail

values

public static final ComposedMailPart.ComposedPartType[] 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(ComposedMailPart.ComposedPartType c : ComposedMailPart.ComposedPartType.values())
        System.out.println(c);

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

valueOf

public static ComposedMailPart.ComposedPartType 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