ejel
Enum EmailAccount.ServerProtocol

java.lang.Object
  extended by java.lang.Enum<EmailAccount.ServerProtocol>
      extended by ejel.EmailAccount.ServerProtocol
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EmailAccount.ServerProtocol>
Enclosing class:
EmailAccount

public static enum EmailAccount.ServerProtocol
extends java.lang.Enum<EmailAccount.ServerProtocol>

The server protocol used to connect and communicate with the server


Enum Constant Summary
IMAP
          IMAP Server
POP3
          POP3 Server
SMTP
          SMTP Server
 
Method Summary
static EmailAccount.ServerProtocol valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EmailAccount.ServerProtocol[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SMTP

public static final EmailAccount.ServerProtocol SMTP
SMTP Server


IMAP

public static final EmailAccount.ServerProtocol IMAP
IMAP Server


POP3

public static final EmailAccount.ServerProtocol POP3
POP3 Server

Method Detail

values

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

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

valueOf

public static EmailAccount.ServerProtocol 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
java.lang.NullPointerException - if the argument is null