iaik.xkms
Enum Validity

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

public enum Validity
extends Enum<Validity>

Summary validity codes in a KeyBinding status.


Enum Constant Summary
INDETERMINATE
          The status of the key binding cannot be determined.
INVALID
          The key binding is definitively invalid.
VALID
          The key binding is definitively valid.
 
Method Summary
 String toString()
          Returns the String representation of this enum constant, including the namespace.
static Validity valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Validity[] 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

VALID

public static final Validity VALID
The key binding is definitively valid.


INDETERMINATE

public static final Validity INDETERMINATE
The status of the key binding cannot be determined.


INVALID

public static final Validity INVALID
The key binding is definitively invalid.

Method Detail

values

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

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

valueOf

public static Validity 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<Validity>
Returns:
the String representation including the namespace.