org.schmant.task.findbugs
Enum FindbugsReportLevel
java.lang.Object
java.lang.Enum<FindbugsReportLevel>
org.schmant.task.findbugs.FindbugsReportLevel
- All Implemented Interfaces:
- Serializable, Comparable<FindbugsReportLevel>
public enum FindbugsReportLevel
- extends Enum<FindbugsReportLevel>
Enumeration over the different Findbugs reporting levels.
- Since:
- 0.5
- Author:
- Karl Gustafsson
- Task_package:
- net.findbugs
LOW
public static final FindbugsReportLevel LOW
MEDIUM
public static final FindbugsReportLevel MEDIUM
HIGH
public static final FindbugsReportLevel HIGH
RELAXED
public static final FindbugsReportLevel RELAXED
values
public static FindbugsReportLevel[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (FindbugsReportLevel c : FindbugsReportLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FindbugsReportLevel valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getFromString
public static FindbugsReportLevel getFromString(String s)
throws IllegalArgumentException
- Get the reporting level that corresponds to the supplied string.
- Parameters:
s
- The string.
- Returns:
- The report level.
- Throws:
IllegalArgumentException
- If no matching report level could be
found.
toString
public String toString()
- Overrides:
toString
in class Enum<FindbugsReportLevel>