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) |
static RulePriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RulePriority |
valueOfString(String level)
Deprecated.
in 3.6
|
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 null@Deprecated public static RulePriority valueOfString(String level)
level
- an old priority level : Error or Warningpublic static RulePriority fromCheckPriority(Priority checkPriority)
Copyright © 2009-2014 SonarSource. All Rights Reserved.