Package org.ametys.cms.content
Enum CopyReport.CopyState
- java.lang.Object
-
- java.lang.Enum<CopyReport.CopyState>
-
- org.ametys.cms.content.CopyReport.CopyState
-
- All Implemented Interfaces:
Serializable
,Comparable<CopyReport.CopyState>
- Enclosing class:
- CopyReport
public static enum CopyReport.CopyState extends Enum<CopyReport.CopyState>
The possible state of the copy
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CopyState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CopyReport.CopyState
valueOf(String name)
Returns the enum constant of this type with the specified name.static CopyReport.CopyState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RUNNING
public static final CopyReport.CopyState RUNNING
Running : when the copy is still running
-
SUCCESS
public static final CopyReport.CopyState SUCCESS
Success : when the copy has ended well
-
ERROR
public static final CopyReport.CopyState ERROR
Error : when an error was encountered during the copy (except for metadata copy errors).
-
-
Constructor Detail
-
CopyState
private CopyState()
-
-
Method Detail
-
values
public static CopyReport.CopyState[] 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 (CopyReport.CopyState c : CopyReport.CopyState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CopyReport.CopyState 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
-
-