java.lang.Object
java.lang.Enum<Severity>
io.github.jeremylong.openvulnerability.client.ghsa.Severity
All Implemented Interfaces:
Serializable, Comparable<Severity>, Constable

public enum Severity extends Enum<Severity>
Severity of the vulnerability.
 enum SecurityAdvisorySeverity
 
  • Enum Constant Details

    • CRITICAL

      public static final Severity CRITICAL
      Critical severity.
    • HIGH

      public static final Severity HIGH
      High severity.
    • LOW

      public static final Severity LOW
      Low severity.
    • MODERATE

      public static final Severity MODERATE
      Moderate severity.
  • Field Details

    • value

      private final String value
  • Constructor Details

    • Severity

      private Severity(String graphQlValue)
  • Method Details

    • values

      public static Severity[] 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 Severity 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
    • fromValue

      public static Severity fromValue(String value)
      Returns the enum constant of this type with the specified name.
      Parameters:
      value - the value.
      Returns:
      the enum constant with the specified name.
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified GraphQL name
    • value

      public String value()
      Returns the value of this constant.
      Returns:
      the enum constant with the specified name.