net.sf.mmm.util.file.api
Enum FileAccessClass

java.lang.Object
  extended by java.lang.Enum<FileAccessClass>
      extended by net.sf.mmm.util.file.api.FileAccessClass
All Implemented Interfaces:
Serializable, Comparable<FileAccessClass>

public enum FileAccessClass
extends Enum<FileAccessClass>

This class represents the three distinct classes of Unix (POSIX) file permissions.

Since:
1.0.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
See Also:
USER, GROUP, OTHERS

Enum Constant Summary
GROUP
          The class for the permissions of the group.
OTHERS
          The class for the permissions for all others.
USER
          The class for the permissions of the user (owner).
 
Method Summary
static FileAccessClass valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FileAccessClass[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

USER

public static final FileAccessClass USER
The class for the permissions of the user (owner).


GROUP

public static final FileAccessClass GROUP
The class for the permissions of the group.


OTHERS

public static final FileAccessClass OTHERS
The class for the permissions for all others.

Method Detail

values

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

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

valueOf

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


Copyright © 2001-2010 mmm-Team. All Rights Reserved.