Enum Class Severity

java.lang.Object
java.lang.Enum<Severity>
com.tnsai.quality.security.harness.Severity
All Implemented Interfaces:
Serializable, Comparable<Severity>, Constable

public enum Severity extends Enum<Severity>
Severity classification for a ReviewFinding (TNS-291).

Ordinal ordering is meaningful — higher = more severe — and is relied on by aggregators that want "max severity per file" or "filter ≥ HIGH". Adding new values mid-scale would break that contract; new severities should be appended.

Since:
0.10.0 (TNS-291)
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Trivially exploitable, broad impact, fix immediately.
    Exploitable in common conditions; needs prompt attention.
    Not a vulnerability; informational signal (e.g. style notice).
    Theoretical or low-impact concern.
    Real but bounded — exploitable under specific conditions.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    true if this is at least as severe as other.
    static Severity
    Returns the enum constant of this class with the specified name.
    static Severity[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • INFO

      public static final Severity INFO
      Not a vulnerability; informational signal (e.g. style notice).
    • LOW

      public static final Severity LOW
      Theoretical or low-impact concern.
    • MEDIUM

      public static final Severity MEDIUM
      Real but bounded — exploitable under specific conditions.
    • HIGH

      public static final Severity HIGH
      Exploitable in common conditions; needs prompt attention.
    • CRITICAL

      public static final Severity CRITICAL
      Trivially exploitable, broad impact, fix immediately.
  • 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
    • atLeast

      public boolean atLeast(Severity other)
      true if this is at least as severe as other.