public enum RulePriority extends Enum<RulePriority>
| Enum Constant and Description |
|---|
BLOCKER |
CRITICAL |
INFO
WARNING : DO NOT CHANGE THE ENUMERATION ORDER
the enum ordinal is used for db persistence
|
MAJOR |
MINOR |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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 nameNullPointerException - if the argument is nullpublic static RulePriority valueOfString(String level)
level - an old priority level : Error or Warningpublic static RulePriority fromCheckPriority(Priority checkPriority)
public Priority toCheckPriority()
Copyright © 2009-2012 SonarSource. All Rights Reserved.