jxl.enclosure.security
Enum PermissionState

java.lang.Object
  extended by java.lang.Enum<PermissionState>
      extended by jxl.enclosure.security.PermissionState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PermissionState>

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

Enum specifying the possible states of permission allocation.

Author:
Alex Lynch

Enum Constant Summary
DENIED
          The permission associated with this state has been denied.
GRANTED
          The permission associated with this state has been granted.
UNDEFINED
          The permission associated with this state has neither been granted nor denied, as yet.
 
Method Summary
static PermissionState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PermissionState[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GRANTED

public static final PermissionState GRANTED
The permission associated with this state has been granted.


DENIED

public static final PermissionState DENIED
The permission associated with this state has been denied.


UNDEFINED

public static final PermissionState UNDEFINED
The permission associated with this state has neither been granted nor denied, as yet.

Method Detail

values

public static final PermissionState[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(PermissionState c : PermissionState.values())
        System.out.println(c);

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

valueOf

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