Enum Class Level

java.lang.Object
java.lang.Enum<Level>
edu.umd.cs.findbugs.sarif.Level
All Implemented Interfaces:
Serializable, Comparable<Level>, Constable

enum Level extends Enum<Level>
An enum representing level property.
See Also:
  • Enum Constant Details

    • 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".
  • Constructor Details

    • Level

      private Level()
  • Method Details

    • values

      public static Level[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Level valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • toJsonString

      public String toJsonString()
    • fromBugRank

      @NonNull static Level fromBugRank(int bugRank)
    • fromWeaknessSeverity

      @NonNull static Level fromWeaknessSeverity(WeaknessSeverity severity)