net.sf.dict4j
Enum ResponseEnum

java.lang.Object
  extended by java.lang.Enum<ResponseEnum>
      extended by net.sf.dict4j.ResponseEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ResponseEnum>

public enum ResponseEnum
extends java.lang.Enum<ResponseEnum>

The standard response codes received from the server as per RFC 2229


Enum Constant Summary
ACCESS_DENIED
           
AUTHENTICATION_SUCCESSFUL
           
CLOSING_CONNECTION
           
COMMAND_COMPLETE
           
COMMAND_NOT_IMPLEMENTED
           
COMMAND_NOT_RECOGNIZED
           
COMMAND_PARAM_NOT_IMPLEMENTED
           
DATABASE_INFORMATION
           
DATABASES_AVAILABLE
           
DEFINITION_FOUND
           
DEFINITIONS_FOUND
           
HELP_TEXT_FOLLOWS
           
ILLEGAL_PARAMETERS
           
INVALID_DATABASE
           
INVALID_STRATEGY
           
MATCHES_FOUND
           
NO_DATABASES_AVAILABLE
           
NO_MATCH
           
NO_STRATEGIES_AVAILABLE
           
SERVER_INFORMATION
           
SERVER_SHUTTING_DOWN
           
SERVER_TEMPORARILY_UNAVAILABLE
           
STATUS_INFORMATION
           
STRATEGIES_AVAILABLE
           
SUCCESSFUL_CONNECTION
           
 
Field Summary
 int code
           
 
Method Summary
 java.lang.String toString()
           
static ResponseEnum valueOf(int code)
           
static ResponseEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ResponseEnum[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DATABASES_AVAILABLE

public static final ResponseEnum DATABASES_AVAILABLE

STRATEGIES_AVAILABLE

public static final ResponseEnum STRATEGIES_AVAILABLE

DATABASE_INFORMATION

public static final ResponseEnum DATABASE_INFORMATION

HELP_TEXT_FOLLOWS

public static final ResponseEnum HELP_TEXT_FOLLOWS

SERVER_INFORMATION

public static final ResponseEnum SERVER_INFORMATION

DEFINITIONS_FOUND

public static final ResponseEnum DEFINITIONS_FOUND

DEFINITION_FOUND

public static final ResponseEnum DEFINITION_FOUND

MATCHES_FOUND

public static final ResponseEnum MATCHES_FOUND

STATUS_INFORMATION

public static final ResponseEnum STATUS_INFORMATION

SUCCESSFUL_CONNECTION

public static final ResponseEnum SUCCESSFUL_CONNECTION

CLOSING_CONNECTION

public static final ResponseEnum CLOSING_CONNECTION

AUTHENTICATION_SUCCESSFUL

public static final ResponseEnum AUTHENTICATION_SUCCESSFUL

COMMAND_COMPLETE

public static final ResponseEnum COMMAND_COMPLETE

SERVER_TEMPORARILY_UNAVAILABLE

public static final ResponseEnum SERVER_TEMPORARILY_UNAVAILABLE

SERVER_SHUTTING_DOWN

public static final ResponseEnum SERVER_SHUTTING_DOWN

COMMAND_NOT_RECOGNIZED

public static final ResponseEnum COMMAND_NOT_RECOGNIZED

ILLEGAL_PARAMETERS

public static final ResponseEnum ILLEGAL_PARAMETERS

COMMAND_NOT_IMPLEMENTED

public static final ResponseEnum COMMAND_NOT_IMPLEMENTED

COMMAND_PARAM_NOT_IMPLEMENTED

public static final ResponseEnum COMMAND_PARAM_NOT_IMPLEMENTED

ACCESS_DENIED

public static final ResponseEnum ACCESS_DENIED

INVALID_DATABASE

public static final ResponseEnum INVALID_DATABASE

INVALID_STRATEGY

public static final ResponseEnum INVALID_STRATEGY

NO_MATCH

public static final ResponseEnum NO_MATCH

NO_DATABASES_AVAILABLE

public static final ResponseEnum NO_DATABASES_AVAILABLE

NO_STRATEGIES_AVAILABLE

public static final ResponseEnum NO_STRATEGIES_AVAILABLE
Field Detail

code

public int code
Method Detail

values

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

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

valueOf

public static ResponseEnum 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

valueOf

public static ResponseEnum valueOf(int code)

toString

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