|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.core.util.enum.BaseEnum | +--org.sape.carbon.services.email.util.MailContentTypeEnum
The class encapsulates the various Mime types.
Copyright 2002 Sapient
Nested Class Summary |
Nested classes inherited from class org.sape.carbon.core.util.enum.BaseEnum |
|
Field Summary | |
static MailContentTypeEnum |
HTML
Should be used for sending html emails. |
static MailContentTypeEnum |
PLAIN_TEXT
Should be used for sending plain text emails. |
Fields inherited from class org.sape.carbon.core.util.enum.BaseEnum |
name, ordinal |
Constructor Summary | |
private |
MailContentTypeEnum(String name)
Constructs a enumeration of type MailContentTypeEnum |
Method Summary | |
static MailContentTypeEnum |
getByName(String name)
Looks up a MailContentTypeEnum by its string representation |
static MailContentTypeEnum |
getByOrdinal(int ordinal)
Looks up a MailContentTypeEnum by its ordinal representation |
static Iterator |
iterator()
Creates an iterator over the values of the enumerated type |
(package private) Object |
readResolve()
Overrides part of serialization to return a reference to an enumeration instance that is managed by the Enumeration Subsystem. |
Methods inherited from class org.sape.carbon.core.util.enum.BaseEnum |
equals, getByName, getByOrdinal, getName, getOrdinal, hashCode, iterator, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final MailContentTypeEnum PLAIN_TEXT
public static final MailContentTypeEnum HTML
Constructor Detail |
private MailContentTypeEnum(String name)
MailContentTypeEnum
name
- the name of the content type.Method Detail |
public static final MailContentTypeEnum getByName(String name)
MailContentTypeEnum
by its string representation
name
- the String name of a enumeration instance
MailContentTypeEnum
public static MailContentTypeEnum getByOrdinal(int ordinal)
MailContentTypeEnum
by its ordinal representation
ordinal
- the integer ordinal value of a specific
enumeration instance
MailContentTypeEnum
public static Iterator iterator()
final Object readResolve() throws ObjectStreamException
ObjectStreamException
- when there is a failure to
resolve the streamed object due to a format or read
io exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |