org.entityfs.entityattrs.unix
Enum UnixEntityAccessModeFlag

java.lang.Object
  extended by java.lang.Enum<UnixEntityAccessModeFlag>
      extended by org.entityfs.entityattrs.unix.UnixEntityAccessModeFlag
All Implemented Interfaces:
Serializable, Comparable<UnixEntityAccessModeFlag>

public enum UnixEntityAccessModeFlag
extends Enum<UnixEntityAccessModeFlag>

This is an enumeration over the different access permissions that an entity can have for different UidGidSubject:s.

Since:
1.0
Author:
Karl Gustafsson
See Also:
UnixEntityMode

Enum Constant Summary
EXECUTE
           
READ
           
WRITE
           
 
Method Summary
 char getCharValue()
          Get the character value for the access permission.
 int getIntValue()
          Get the integer value for the access permission.
 String getReadable()
          Get a readable name for the access permission.
 String toString()
           
static UnixEntityAccessModeFlag valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UnixEntityAccessModeFlag[] 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

READ

public static final UnixEntityAccessModeFlag READ

WRITE

public static final UnixEntityAccessModeFlag WRITE

EXECUTE

public static final UnixEntityAccessModeFlag EXECUTE
Method Detail

values

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

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

valueOf

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

getIntValue

public int getIntValue()
Get the integer value for the access permission. This is the value used when representing the access permissions as a triplet of octals, such as 644.

Returns:
The integer value for the access permission.

getCharValue

public char getCharValue()
Get the character value for the access permission. This is the value used when representing the access permission as a collection of characters, such as rw.

Returns:
The character value for the access permission.

getReadable

public String getReadable()
Get a readable name for the access permission. This can be used by, for instance, toString implementations.

Returns:
A readable name.

toString

public String toString()
Overrides:
toString in class Enum<UnixEntityAccessModeFlag>