com.openexchange.mail.api
Enum MailConfig.BoolCapVal

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

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


Enum Constant Summary
AUTO
          AUTO
FALSE
          FALSE
TRUE
          TRUE
 
Method Summary
static MailConfig.BoolCapVal parseBoolCapVal(java.lang.String capVal)
          Parses given capability value.
 java.lang.String toString()
           
static MailConfig.BoolCapVal valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MailConfig.BoolCapVal[] 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

AUTO

public static final MailConfig.BoolCapVal AUTO
AUTO


FALSE

public static final MailConfig.BoolCapVal FALSE
FALSE


TRUE

public static final MailConfig.BoolCapVal TRUE
TRUE

Method Detail

values

public static final MailConfig.BoolCapVal[] 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.BoolCapVal c : MailConfig.BoolCapVal.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.BoolCapVal 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

parseBoolCapVal

public static final MailConfig.BoolCapVal parseBoolCapVal(java.lang.String capVal)
Parses given capability value. If given value equals ignore-case to string true, constant TRUE will be returned. Else if given value equals ignore-case to string auto, constant AUTO will be returned. Otherwise FALSE will be returned.

Parameters:
capVal - - the string value to parse
Returns:
an instance of BoolCapVal: either TRUE, FALSE, or AUTO

toString

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