org.nfctools.snep
Enum Response

java.lang.Object
  extended by java.lang.Enum<Response>
      extended by org.nfctools.snep.Response
All Implemented Interfaces:
Serializable, Comparable<Response>

public enum Response
extends Enum<Response>


Enum Constant Summary
BAD_REQUEST
           
CONTINUE
           
EXCESS_DATA
           
NOT_FOUND
           
NOT_IMPLEMENTED
           
REJECT
           
SUCCESS
           
UNSUPPORTED_VERSION
           
 
Method Summary
 byte getCode()
           
static Response valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Response[] 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

CONTINUE

public static final Response CONTINUE

SUCCESS

public static final Response SUCCESS

NOT_FOUND

public static final Response NOT_FOUND

EXCESS_DATA

public static final Response EXCESS_DATA

BAD_REQUEST

public static final Response BAD_REQUEST

NOT_IMPLEMENTED

public static final Response NOT_IMPLEMENTED

UNSUPPORTED_VERSION

public static final Response UNSUPPORTED_VERSION

REJECT

public static final Response REJECT
Method Detail

values

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

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

valueOf

public static Response valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getCode

public byte getCode()


Copyright © 2012. All Rights Reserved.