Enum Constant and Description |
---|
DANGER |
ERROR |
NOTE |
SUPPRESSED |
WARNING |
Modifier and Type | Method and Description |
---|---|
boolean |
canSuppress()
Check if the severity level of the error can be suppressed.
|
static java.util.Optional<Severity> |
fromString(java.lang.String text)
Create a new Severity from a string.
|
static Severity |
valueOf(java.lang.String name)
Returns 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.
|
public static final Severity SUPPRESSED
public static final Severity NOTE
public static final Severity WARNING
public static final Severity DANGER
public static final Severity ERROR
public static Severity[] values()
for (Severity c : Severity.values()) System.out.println(c);
public static Severity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean canSuppress()
public static java.util.Optional<Severity> fromString(java.lang.String text)
text
- Text to convert into a severity level.