|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SeverityLevel>
com.puppycrawl.tools.checkstyle.api.SeverityLevel
public 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 Summary | |
|---|---|
ERROR
security level error. |
|
IGNORE
security level ignore. |
|
INFO
security level info. |
|
WARNING
security level warning. |
|
| Method Summary | |
|---|---|
static SeverityLevel |
getInstance(String aSecurityLevelName)
SeverityLevel factory method. |
String |
getName()
|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SeverityLevel IGNORE
public static final SeverityLevel INFO
public static final SeverityLevel WARNING
public static final SeverityLevel ERROR
| Method Detail |
|---|
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 nullpublic String toString()
toString in class Enum<SeverityLevel>public String getName()
public static SeverityLevel getInstance(String aSecurityLevelName)
aSecurityLevelName - level name, such as "ignore", "info", etc.
SeverityLevel
associated with aSecurityLevelName
|
Back to the Checkstyle Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||