Enum SeverityLevel
- All Implemented Interfaces:
-
Serializable
,Comparable<SeverityLevel>
,java.lang.constant.Constable
The enum is used to distinguish instances of
ReportMessage
according to their severity level.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAccepted
(SeverityLevel minimalLevel) Checks if current severity level is not less then provided minimal severity level.toString()
static SeverityLevel
Returns the enum constant of this type with the specified name.static SeverityLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INFO
Minimal severity level which marks messages and events with info level. It is designed to notify a user about expected behaviour. -
WARNING
Medium severity level which marks messages and events with warning level. It is designed to notify a user about non-critical issues. -
ERROR
Maximum severity level which marks messages and events with error level. It is designed to notify a user about critical issues.
-
-
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 name -
NullPointerException
- if the argument is null
-
isAccepted
Checks if current severity level is not less then provided minimal severity level.- Parameters:
-
minimalLevel
- is a minimal level of severity - Returns:
- true if this severity level is not less then provided minimal severity level and false otherwise
-
toString
- Overrides:
-
toString
in classEnum<SeverityLevel>
-