public enum SeverityLevel extends Enum<SeverityLevel>
ReportMessage
according to their severity level.
Enum Constant and Description |
---|
ERROR
Maximum severity level which marks messages and events with error level.
|
INFO
Minimal severity level which marks messages and events with info level.
|
WARNING
Medium severity level which marks messages and events with warning level.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAccepted(SeverityLevel minimalLevel)
Checks if current severity level is not less then provided minimal severity level.
|
String |
toString() |
static SeverityLevel |
valueOf(String name)
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.
|
public static final SeverityLevel INFO
public static final SeverityLevel WARNING
public static final SeverityLevel ERROR
public static SeverityLevel[] values()
for (SeverityLevel c : SeverityLevel.values()) System.out.println(c);
public static SeverityLevel valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
public boolean isAccepted(SeverityLevel minimalLevel)
minimalLevel
- is a minimal level of severity
public String toString()
toString
in class Enum<SeverityLevel>
Copyright © 1998–2020 iText Group NV. All rights reserved.