|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.puppycrawl.tools.checkstyle.api.SeverityLevel
public final class SeverityLevel
Severity level for a check violation.
Each violation of an audit check is assigned one of the severity levels defined here.
Field Summary | |
---|---|
static SeverityLevel |
ERROR
Severity level: error. |
static SeverityLevel |
IGNORE
Severity level: ignore. |
static SeverityLevel |
INFO
Severity level: informational. |
static SeverityLevel |
WARNING
Severity level: warning. |
Method Summary | |
---|---|
int |
compareTo(Object aObject)
|
boolean |
equals(Object aObj)
The equals method. |
static SeverityLevel |
getInstance(String aSeverityName)
SeverityLevel factory method. |
String |
getName()
|
int |
hashCode()
The hashCode method. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SeverityLevel IGNORE
public static final SeverityLevel INFO
public static final SeverityLevel WARNING
public static final SeverityLevel ERROR
Method Detail |
---|
public String toString()
toString
in class Object
public String getName()
public int compareTo(Object aObject)
compareTo
in interface Comparable
public boolean equals(Object aObj)
equals
in class Object
aObj
- Object to compare to.
true
means equal, false
means
not equal.public int hashCode()
hashCode
in class Object
public static SeverityLevel getInstance(String aSeverityName)
aSeverityName
- severity name, such as "ignore", "info", etc.
SeverityLevel
associated with
aSeverityName
|
Back to the Checkstyle Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |