Package com.xwiki.admintools.jobs
Enum JobResultLevel
- All Implemented Interfaces:
Serializable,Comparable<JobResultLevel>
Represents the severity level of a job, where "INFO" is for informative results, "WARN" for warnings, "ERROR"
for severe issues and "FAIL" for job failures.
- Since:
- 1.0
- Version:
- $Id$
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed to mark aJobResultLevelas an error.This is used to mark a job failure.Used to mark aJobResultLevelas informative.Used to mark aJobResultLevelas a warning. -
Method Summary
Modifier and TypeMethodDescriptionstatic JobResultLevelReturns the enum constant of this type with the specified name.static JobResultLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FAIL
This is used to mark a job failure.- Since:
- 1.3
-
ERROR
Used to mark aJobResultLevelas an error. -
WARN
Used to mark aJobResultLevelas a warning. -
INFO
Used to mark aJobResultLevelas informative.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-