public enum SeverityLevel extends Enum<SeverityLevel>
Severity level for a check violation.
Each violation of an audit check is assigned one of the severity levels defined here.
Enum Constant and Description |
---|
ERROR
Severity level error.
|
IGNORE
Severity level ignore.
|
INFO
Severity level info.
|
WARNING
Severity level warning.
|
Modifier and Type | Method and Description |
---|---|
static SeverityLevel |
getInstance(String securityLevelName)
SeverityLevel factory method.
|
String |
getName()
Returns name of 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 IGNORE
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 nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<SeverityLevel>
public String getName()
public static SeverityLevel getInstance(String securityLevelName)
securityLevelName
- level name, such as "ignore", "info", etc.SeverityLevel
associated with securityLevelName
Copyright © 2001–2018. All rights reserved.