Enum Severity
- All Implemented Interfaces:
Serializable, Comparable<Severity>, java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA fatal problem with user input which must be correctedAn information message for the user, which should not block them from proceeding but may provide adviceA warning to the user that they should change a value, but which does not block them from proceeding -
Method Summary
Modifier and TypeMethodDescriptionbadge()color()Get a suitable color for displaying problem textdescribeError(String toDescribe) Annotate an error description with the severity.icon()Get an icon version of the warning imageimage()Get a warning icon as an imagetoString()Returns a localized name for this enum constantstatic SeverityReturns the enum constant of this type with the specified name.static Severity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INFO
An information message for the user, which should not block them from proceeding but may provide advice -
WARNING
A warning to the user that they should change a value, but which does not block them from proceeding -
FATAL
A fatal problem with user input which must be corrected
-
-
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
-
image
-
icon
-
color
-
badge
-
describeError
-
toString
-