Package org.mycore.common.processing
Enum Class MCRProcessableStatus
- All Implemented Interfaces:
Serializable
,Comparable<MCRProcessableStatus>
,java.lang.constant.Constable
The status of one
MCRProcessable
. Can be one of created,
processing, canceled, failed or successful.- Author:
- Matthias Eichner
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCanceled by the user and not by an error.The process is created and not started yet.An exception/error occurred while processing.The process is currently running.The process is successfully done. -
Method Summary
Modifier and TypeMethodDescriptionstatic MCRProcessableStatus
Returns the enum constant of this class with the specified name.static MCRProcessableStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
created
The process is created and not started yet. -
processing
The process is currently running. -
canceled
Canceled by the user and not by an error. -
failed
An exception/error occurred while processing. -
successful
The process is successfully done.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-