|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<RulePriority> org.sonar.api.rules.RulePriority
public enum RulePriority
A class to hold rules priority
Enum Constant Summary | |
---|---|
BLOCKER
|
|
CRITICAL
|
|
INFO
WARNING : DO NOT CHANGE THE ENUMERATION ORDER the enum ordinal is used for db persistence |
|
MAJOR
|
|
MINOR
|
Method Summary | |
---|---|
static RulePriority |
fromCheckPriority(Priority checkPriority)
|
Priority |
toCheckPriority()
|
static RulePriority |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RulePriority |
valueOfString(String level)
A class to map priority level prior to Sonar 1.10 to the new ones |
static RulePriority[] |
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, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RulePriority INFO
public static final RulePriority MINOR
public static final RulePriority MAJOR
public static final RulePriority CRITICAL
public static final RulePriority BLOCKER
Method Detail |
---|
public static RulePriority[] values()
for (RulePriority c : RulePriority.values()) System.out.println(c);
public static RulePriority 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 static RulePriority valueOfString(String level)
level
- an old priority level : Error or Warning
public static RulePriority fromCheckPriority(Priority checkPriority)
public Priority toCheckPriority()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |