org.entityfs.entityattrs.unix
Enum UnixEntityModeFlag

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

public enum UnixEntityModeFlag
extends Enum<UnixEntityModeFlag>

This is an enumeration over the different mode flags that a UnixEntityMode might have.

Since:
1.0
Author:
Karl Gustafsson

Enum Constant Summary
MANDATORY_LOCKING
           
SET_GROUP_ID
           
SET_USER_ID
           
STICKY_BIT
           
 
Method Summary
 char getCharValue()
          Get the flag's character value.
 int getIntValue()
          Get the flag's integer value.
 String getReadable()
          Get a readable representation of the mode flag.
 String toString()
           
static UnixEntityModeFlag valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UnixEntityModeFlag[] 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

SET_USER_ID

public static final UnixEntityModeFlag SET_USER_ID

SET_GROUP_ID

public static final UnixEntityModeFlag SET_GROUP_ID

MANDATORY_LOCKING

public static final UnixEntityModeFlag MANDATORY_LOCKING

STICKY_BIT

public static final UnixEntityModeFlag STICKY_BIT
Method Detail

values

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

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

valueOf

public static UnixEntityModeFlag 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 flag's integer value.

Returns:
The flag's integer value.

getCharValue

public char getCharValue()
Get the flag's character value.

Returns:
The flag's character value.

getReadable

public String getReadable()
Get a readable representation of the mode flag. This can be used, for instance, in toString implementations.

Returns:
A readable text.

toString

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