com.threerings.jpkg
Enum UnixStandardPermissions

java.lang.Object
  extended by java.lang.Enum<UnixStandardPermissions>
      extended by com.threerings.jpkg.UnixStandardPermissions
All Implemented Interfaces:
Serializable, Comparable<UnixStandardPermissions>

public enum UnixStandardPermissions
extends Enum<UnixStandardPermissions>

Contains various standard Unix permissions.


Enum Constant Summary
ROOT_GROUP
          The standard Unix root group information.
ROOT_USER
          The standard Unix root user information.
 
Field Summary
static int EXECUTABLE_FILE_MODE
          The standard Unix filesystem permissions for an executable file.
static int STANDARD_DIR_MODE
          The standard Unix filesystem permissions for a directory.
static int STANDARD_FILE_MODE
          The standard Unix filesystem permissions for a normal file.
 
Method Summary
 int getId()
          The user or group id for this permission.
 String getName()
          The user or group name for this permission.
static UnixStandardPermissions valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UnixStandardPermissions[] 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

ROOT_USER

public static final UnixStandardPermissions ROOT_USER
The standard Unix root user information.


ROOT_GROUP

public static final UnixStandardPermissions ROOT_GROUP
The standard Unix root group information.

Field Detail

STANDARD_FILE_MODE

public static final int STANDARD_FILE_MODE
The standard Unix filesystem permissions for a normal file.

See Also:
Constant Field Values

EXECUTABLE_FILE_MODE

public static final int EXECUTABLE_FILE_MODE
The standard Unix filesystem permissions for an executable file.

See Also:
Constant Field Values

STANDARD_DIR_MODE

public static final int STANDARD_DIR_MODE
The standard Unix filesystem permissions for a directory.

See Also:
Constant Field Values
Method Detail

values

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

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

valueOf

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

getName

public String getName()
The user or group name for this permission.


getId

public int getId()
The user or group id for this permission.



Copyright © 2007-2008 Three Rings Design, Inc. All Rights Reserved. Released under a BSD license.