com.openexchange.mail.api
Enum MailConfig.PasswordSource

java.lang.Object
  extended by java.lang.Enum<MailConfig.PasswordSource>
      extended by com.openexchange.mail.api.MailConfig.PasswordSource
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MailConfig.PasswordSource>
Enclosing class:
MailConfig

public static enum MailConfig.PasswordSource
extends java.lang.Enum<MailConfig.PasswordSource>


Enum Constant Summary
GLOBAL
          Password is taken from appropriate property
SESSION
          Password is equal to session password
 
Method Summary
static MailConfig.PasswordSource parse(java.lang.String passwordSourceStr)
          Parses specified string into a password source.
 java.lang.String toString()
           
static MailConfig.PasswordSource valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MailConfig.PasswordSource[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GLOBAL

public static final MailConfig.PasswordSource GLOBAL
Password is taken from appropriate property


SESSION

public static final MailConfig.PasswordSource SESSION
Password is equal to session password

Method Detail

values

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

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

valueOf

public static MailConfig.PasswordSource 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

parse

public static final MailConfig.PasswordSource parse(java.lang.String passwordSourceStr)
Parses specified string into a password source.

Parameters:
passwordSourceStr - The string to parse to a password source
Returns:
An appropriate password source or null if string could not be parsed to a password source

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<MailConfig.PasswordSource>