Package org.opends.quicksetup.util
Enum FileManager.DeletionPolicy
- java.lang.Object
-
- java.lang.Enum<FileManager.DeletionPolicy>
-
- org.opends.quicksetup.util.FileManager.DeletionPolicy
-
- All Implemented Interfaces:
Serializable,Comparable<FileManager.DeletionPolicy>
- Enclosing class:
- FileManager
public static enum FileManager.DeletionPolicy extends Enum<FileManager.DeletionPolicy>
Describes the approach taken to deleting a file or directory.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETE_IMMEDIATELYDelete the file or directory immediately.DELETE_ON_EXITMark the file or directory for deletion after the JVM has exited.DELETE_ON_EXIT_IF_UNSUCCESSFULFirst try to delete the file immediately.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileManager.DeletionPolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static FileManager.DeletionPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DELETE_IMMEDIATELY
public static final FileManager.DeletionPolicy DELETE_IMMEDIATELY
Delete the file or directory immediately.
-
DELETE_ON_EXIT
public static final FileManager.DeletionPolicy DELETE_ON_EXIT
Mark the file or directory for deletion after the JVM has exited.
-
DELETE_ON_EXIT_IF_UNSUCCESSFUL
public static final FileManager.DeletionPolicy DELETE_ON_EXIT_IF_UNSUCCESSFUL
First try to delete the file immediately. If the deletion was unsuccessful mark the file for deletion when the JVM has existed.
-
-
Method Detail
-
values
public static FileManager.DeletionPolicy[] 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 (FileManager.DeletionPolicy c : FileManager.DeletionPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileManager.DeletionPolicy 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 nameNullPointerException- if the argument is null
-
-