Enum Vulnerability.Rating.Method
- java.lang.Object
-
- java.lang.Enum<Vulnerability.Rating.Method>
-
- org.cyclonedx.model.vulnerability.Vulnerability.Rating.Method
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Vulnerability.Rating.Method>
- Enclosing class:
- Vulnerability.Rating
public static enum Vulnerability.Rating.Method extends java.lang.Enum<Vulnerability.Rating.Method>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringname
-
Constructor Summary
Constructors Modifier Constructor Description privateMethod(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Vulnerability.Rating.MethodfromString(java.lang.String text)java.lang.StringgetMethodName()static Vulnerability.Rating.MethodvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Vulnerability.Rating.Method[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CVSSV2
public static final Vulnerability.Rating.Method CVSSV2
-
CVSSV3
public static final Vulnerability.Rating.Method CVSSV3
-
CVSSV31
public static final Vulnerability.Rating.Method CVSSV31
-
CVSSV4
public static final Vulnerability.Rating.Method CVSSV4
-
OWASP
public static final Vulnerability.Rating.Method OWASP
-
SSVC
public static final Vulnerability.Rating.Method SSVC
-
OTHER
public static final Vulnerability.Rating.Method OTHER
-
-
Method Detail
-
values
public static Vulnerability.Rating.Method[] 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.Method c : Vulnerability.Rating.Method.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.Method 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
-
getMethodName
public java.lang.String getMethodName()
-
fromString
public static Vulnerability.Rating.Method fromString(java.lang.String text)
-
-