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 representinglevelproperty.- See Also:
- 3.27.10 level property
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORThe rule specified by ruleId was evaluated and a serious problem was found.NONEThe concept of “severity” does not apply to this result because the kind property (§3.27.9) has a value other than "fail".NOTEThe rule specified by ruleId was evaluated and a minor problem or an opportunity to improve the code was found.WARNINGThe rule specified by ruleId was evaluated and a problem was found.
-
Constructor Summary
Constructors Modifier Constructor Description privateLevel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static LevelfromBugRank(int bugRank)(package private) static LevelfromWeaknessSeverity(WeaknessSeverity severity)java.lang.StringtoJsonString()static LevelvalueOf(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 WARNINGThe rule specified by ruleId was evaluated and a problem was found.
-
ERROR
@SerializedName("error") public static final Level ERRORThe rule specified by ruleId was evaluated and a serious problem was found.
-
NOTE
@SerializedName("note") public static final Level NOTEThe 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 NONEThe 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)
-
-