iaik.xkms
Enum ResultMajor

Object
  extended by Enum<ResultMajor>
      extended by ResultMajor
All Implemented Interfaces:
Serializable, Comparable<ResultMajor>

public enum ResultMajor
extends Enum<ResultMajor>

ResultMajor codes.


Enum Constant Summary
PENDING
          The request has been accepted for processing and the service will return the result asynchronously (code is not final).
RECEIVER
          An error occurred at the receiver (code is final).
REPRESENT
          The service has not acted on the request (code is not final).
SENDER
          An error occurred that was due to the message sent by the sender (code is final).
SUCCESS
          The operation succeeded (code is final).
VERSION_MISMATCH
          The service does not support the protocol version specified in the request (code is final).
 
Method Summary
 String toString()
          Returns the String representation of this enum constant, including the namespace.
static ResultMajor valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResultMajor[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUCCESS

public static final ResultMajor SUCCESS
The operation succeeded (code is final).


VERSION_MISMATCH

public static final ResultMajor VERSION_MISMATCH
The service does not support the protocol version specified in the request (code is final).


SENDER

public static final ResultMajor SENDER
An error occurred that was due to the message sent by the sender (code is final).


RECEIVER

public static final ResultMajor RECEIVER
An error occurred at the receiver (code is final).


REPRESENT

public static final ResultMajor REPRESENT
The service has not acted on the request (code is not final). In order for the request to be acted upon the request MUST be represented with the specified nonce in accordance with the two-phase protocol.


PENDING

public static final ResultMajor PENDING
The request has been accepted for processing and the service will return the result asynchronously (code is not final).

Method Detail

values

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

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

valueOf

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

toString

public String toString()
Returns the String representation of this enum constant, including the namespace.

Overrides:
toString in class Enum<ResultMajor>
Returns:
String representation including the namespace.