public enum RulePriority extends java.lang.Enum<RulePriority>
getPriority()
and
valueOf(int)
Enum Constant | Description |
---|---|
HIGH |
High: Change absolutely required.
|
LOW |
Low: Change highly optional.
|
MEDIUM |
Medium: Change recommended.
|
MEDIUM_HIGH |
Medium to high: Change highly recommended.
|
MEDIUM_LOW |
Medium to low: Change optional.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getName() |
Get the descriptive name of this priority.
|
int |
getPriority() |
Get the priority value as a number.
|
java.lang.String |
toString() |
Returns the descriptive name of the priority.
|
static RulePriority |
valueOf(int priority) |
Get the priority which corresponds to the given number as returned by
getPriority() . |
static RulePriority |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static RulePriority[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RulePriority HIGH
public static final RulePriority MEDIUM_HIGH
public static final RulePriority MEDIUM
public static final RulePriority MEDIUM_LOW
public static final RulePriority LOW
public static RulePriority[] values()
for (RulePriority c : RulePriority.values()) System.out.println(c);
public static RulePriority valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getPriority()
int
value of the priority.public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Enum<RulePriority>
getName()
public static RulePriority valueOf(int priority)
getPriority()
. If the number is an invalid value,
then LOW
will be returned.priority
- The numeric priority value.Copyright © 2002–2018 PMD. All rights reserved.