org.schmant.task.findbugs
Enum FindbugsReportFormat
java.lang.Object
java.lang.Enum<FindbugsReportFormat>
org.schmant.task.findbugs.FindbugsReportFormat
- All Implemented Interfaces:
- Serializable, Comparable<FindbugsReportFormat>
public enum FindbugsReportFormat
- extends Enum<FindbugsReportFormat>
Enumeration over the different Findbugs report formats.
- Since:
- 0.5
- Author:
- Karl Gustafsson
- Task_package:
- net.findbugs
XML
public static final FindbugsReportFormat XML
HTML
public static final FindbugsReportFormat HTML
EMACS
public static final FindbugsReportFormat EMACS
XDOCS
public static final FindbugsReportFormat XDOCS
values
public static FindbugsReportFormat[] 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 (FindbugsReportFormat c : FindbugsReportFormat.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FindbugsReportFormat 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 FindbugsReportFormat getFromString(String s)
throws IllegalArgumentException
- Get the report format that corresponds to the supplied string.
- Parameters:
s
- The string
- Returns:
- The report format
- Throws:
IllegalArgumentException
- If no report format matches the supplied
string.
toString
public String toString()
- Overrides:
toString
in class Enum<FindbugsReportFormat>