Enum Vulnerability.Rating.Severity
- java.lang.Object
-
- java.lang.Enum<Vulnerability.Rating.Severity>
-
- org.cyclonedx.model.vulnerability.Vulnerability.Rating.Severity
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Vulnerability.Rating.Severity>
- Enclosing class:
- Vulnerability.Rating
public static enum Vulnerability.Rating.Severity extends java.lang.Enum<Vulnerability.Rating.Severity>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringname
-
Constructor Summary
Constructors Modifier Constructor Description privateSeverity(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Vulnerability.Rating.SeverityfromString(java.lang.String text)java.lang.StringgetSeverityName()static Vulnerability.Rating.SeverityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Vulnerability.Rating.Severity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CRITICAL
public static final Vulnerability.Rating.Severity CRITICAL
-
HIGH
public static final Vulnerability.Rating.Severity HIGH
-
MEDIUM
public static final Vulnerability.Rating.Severity MEDIUM
-
LOW
public static final Vulnerability.Rating.Severity LOW
-
INFO
public static final Vulnerability.Rating.Severity INFO
-
NONE
public static final Vulnerability.Rating.Severity NONE
-
UNKNOWN
public static final Vulnerability.Rating.Severity UNKNOWN
-
-
Method Detail
-
values
public static Vulnerability.Rating.Severity[] 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 (Vulnerability.Rating.Severity c : Vulnerability.Rating.Severity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Vulnerability.Rating.Severity 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
-
getSeverityName
public java.lang.String getSeverityName()
-
fromString
public static Vulnerability.Rating.Severity fromString(java.lang.String text)
-
-