Enum Class Severity
- All Implemented Interfaces:
Serializable,Comparable<Severity>,Constable
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 ConstantsEnum ConstantDescriptionTrivially 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
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
INFO
Not a vulnerability; informational signal (e.g. style notice). -
LOW
Theoretical or low-impact concern. -
MEDIUM
Real but bounded — exploitable under specific conditions. -
HIGH
Exploitable in common conditions; needs prompt attention. -
CRITICAL
Trivially exploitable, broad impact, fix immediately.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
atLeast
trueifthisis at least as severe asother.
-