Enum MailEditor.RecipientType
- java.lang.Object
-
- java.lang.Enum<MailEditor.RecipientType>
-
- com.openindex.openestate.tool.mail.MailEditor.RecipientType
-
- All Implemented Interfaces:
Translatable
,Serializable
,Comparable<MailEditor.RecipientType>
- Enclosing class:
- MailEditor
public static enum MailEditor.RecipientType extends Enum<MailEditor.RecipientType> implements Translatable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MailEditor.RecipientType
fromDbMailAddressType(DbMailAddress.Type type)
String
getTranslation()
String
getTranslation(Locale locale)
static MailEditor.RecipientType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MailEditor.RecipientType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TO
public static final MailEditor.RecipientType TO
-
CC
public static final MailEditor.RecipientType CC
-
BCC
public static final MailEditor.RecipientType BCC
-
REPLY_TO
public static final MailEditor.RecipientType REPLY_TO
-
-
Method Detail
-
values
public static MailEditor.RecipientType[] 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 (MailEditor.RecipientType c : MailEditor.RecipientType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MailEditor.RecipientType 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
-
fromDbMailAddressType
public static MailEditor.RecipientType fromDbMailAddressType(DbMailAddress.Type type)
-
getTranslation
public String getTranslation()
- Specified by:
getTranslation
in interfaceTranslatable
-
getTranslation
public String getTranslation(Locale locale)
- Specified by:
getTranslation
in interfaceTranslatable
-
-