org.apache.servicemix.mail.utils
Enum MailContentType
java.lang.Object
java.lang.Enum<MailContentType>
org.apache.servicemix.mail.utils.MailContentType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<MailContentType>
public enum MailContentType
- extends java.lang.Enum<MailContentType>
- Author:
- lhein
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
TEXT_PLAIN
public static final MailContentType TEXT_PLAIN
TEXT_HTML
public static final MailContentType TEXT_HTML
TEXT_XML
public static final MailContentType TEXT_XML
MULTIPART
public static final MailContentType MULTIPART
MULTIPART_MIXED
public static final MailContentType MULTIPART_MIXED
MULTIPART_ALTERNATIVE
public static final MailContentType MULTIPART_ALTERNATIVE
UNKNOWN
public static final MailContentType UNKNOWN
values
public static MailContentType[] 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 (MailContentType c : MailContentType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MailContentType 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
java.lang.NullPointerException - if the argument is null
getKey
public java.lang.String getKey()
- Returns:
- Returns the key.
getMimeType
public java.lang.String getMimeType()
- Returns:
- Returns the mimeType.
getEnumForValue
public static MailContentType getEnumForValue(java.lang.String value)
- returns the enum type for a value
- Parameters:
value - the string value
- Returns:
- the enum matching this value or UNKNOWN if unrecognized
Copyright © 2005-2012 FuseSource. All Rights Reserved.