public static enum MailConfig.ServerSource extends java.lang.Enum<MailConfig.ServerSource>
Enum Constant and Description |
---|
GLOBAL
Server is taken from appropriate property
|
USER
Server is taken from user
|
Modifier and Type | Method and Description |
---|---|
static MailConfig.ServerSource |
parse(java.lang.String serverSourceStr)
Parses specified string into a server source.
|
java.lang.String |
toString() |
static MailConfig.ServerSource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MailConfig.ServerSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MailConfig.ServerSource GLOBAL
public static final MailConfig.ServerSource USER
public static MailConfig.ServerSource[] values()
for (MailConfig.ServerSource c : MailConfig.ServerSource.values()) System.out.println(c);
public static MailConfig.ServerSource valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static final MailConfig.ServerSource parse(java.lang.String serverSourceStr)
serverSourceStr
- The string to parse to a server sourcenull
if string could not be parsed to a server sourcepublic java.lang.String toString()
toString
in class java.lang.Enum<MailConfig.ServerSource>