Package org.apache.commons.vfs2.util
Enum PosixPermissions.Type
- java.lang.Object
-
- java.lang.Enum<PosixPermissions.Type>
-
- org.apache.commons.vfs2.util.PosixPermissions.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PosixPermissions.Type>
- Enclosing class:
- PosixPermissions
public static enum PosixPermissions.Type extends java.lang.Enum<PosixPermissions.Type>
Permission types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GroupExecutableGroup right executable.GroupReadableGroup right readable.GroupWritableGroup right writable.OtherExecutableOther right executable.OtherReadableOther right readable.OtherWritableOther right writable.UserExecutableUser right executable.UserReadableUser right readable.UserWritableUser right writable.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMask()Gets the mask for this permission.static PosixPermissions.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PosixPermissions.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UserReadable
public static final PosixPermissions.Type UserReadable
User right readable.
-
UserWritable
public static final PosixPermissions.Type UserWritable
User right writable.
-
UserExecutable
public static final PosixPermissions.Type UserExecutable
User right executable.
-
GroupReadable
public static final PosixPermissions.Type GroupReadable
Group right readable.
-
GroupWritable
public static final PosixPermissions.Type GroupWritable
Group right writable.
-
GroupExecutable
public static final PosixPermissions.Type GroupExecutable
Group right executable.
-
OtherReadable
public static final PosixPermissions.Type OtherReadable
Other right readable.
-
OtherWritable
public static final PosixPermissions.Type OtherWritable
Other right writable.
-
OtherExecutable
public static final PosixPermissions.Type OtherExecutable
Other right executable.
-
-
Method Detail
-
values
public static PosixPermissions.Type[] 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 (PosixPermissions.Type c : PosixPermissions.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PosixPermissions.Type 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 namejava.lang.NullPointerException- if the argument is null
-
getMask
public int getMask()
Gets the mask for this permission.- Returns:
- the mask for this permission.
-
-