Package edu.umd.cs.findbugs.sarif
Enum Level
- java.lang.Object
-
- java.lang.Enum<Level>
-
- edu.umd.cs.findbugs.sarif.Level
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Level>
enum Level extends java.lang.Enum<Level>
An enum representinglevel
property.- See Also:
- 3.27.10 level property
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR
The rule specified by ruleId was evaluated and a serious problem was found.NONE
The concept of “severity” does not apply to this result because the kind property (§3.27.9) has a value other than "fail".NOTE
The rule specified by ruleId was evaluated and a minor problem or an opportunity to improve the code was found.WARNING
The rule specified by ruleId was evaluated and a problem was found.
-
Constructor Summary
Constructors Modifier Constructor Description private
Level()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static Level
fromBugRank(int bugRank)
(package private) static Level
fromWeaknessSeverity(WeaknessSeverity severity)
java.lang.String
toJsonString()
static Level
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Level[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WARNING
@SerializedName("warning") public static final Level WARNING
The rule specified by ruleId was evaluated and a problem was found.
-
ERROR
@SerializedName("error") public static final Level ERROR
The rule specified by ruleId was evaluated and a serious problem was found.
-
NOTE
@SerializedName("note") public static final Level NOTE
The rule specified by ruleId was evaluated and a minor problem or an opportunity to improve the code was found.
-
NONE
@SerializedName("none") public static final Level NONE
The concept of “severity” does not apply to this result because the kind property (§3.27.9) has a value other than "fail".
-
-
Method Detail
-
values
public static Level[] 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 (Level c : Level.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Level valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toJsonString
public java.lang.String toJsonString()
-
fromWeaknessSeverity
@NonNull static Level fromWeaknessSeverity(WeaknessSeverity severity)
-
-