Package org.ametys.odf.helper
Enum DeleteODFContentHelper.DeleteMode
- java.lang.Object
-
- java.lang.Enum<DeleteODFContentHelper.DeleteMode>
-
- org.ametys.odf.helper.DeleteODFContentHelper.DeleteMode
-
- All Implemented Interfaces:
Serializable
,Comparable<DeleteODFContentHelper.DeleteMode>
- Enclosing class:
- DeleteODFContentHelper
public static enum DeleteODFContentHelper.DeleteMode extends Enum<DeleteODFContentHelper.DeleteMode>
Enumeration for the mode of deletion
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULL
Delete the content and its structure and its coursesSINGLE
Delete the content onlySTRUCTURE_ONLY
Delete the content and its structure
-
Constructor Summary
Constructors Modifier Constructor Description private
DeleteMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeleteODFContentHelper.DeleteMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static DeleteODFContentHelper.DeleteMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE
public static final DeleteODFContentHelper.DeleteMode SINGLE
Delete the content only
-
STRUCTURE_ONLY
public static final DeleteODFContentHelper.DeleteMode STRUCTURE_ONLY
Delete the content and its structure
-
FULL
public static final DeleteODFContentHelper.DeleteMode FULL
Delete the content and its structure and its courses
-
-
Constructor Detail
-
DeleteMode
private DeleteMode()
-
-
Method Detail
-
values
public static DeleteODFContentHelper.DeleteMode[] 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 (DeleteODFContentHelper.DeleteMode c : DeleteODFContentHelper.DeleteMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeleteODFContentHelper.DeleteMode 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
-
-