Package org.zaproxy.clientapi.core
Enum Alert.Risk
- java.lang.Object
-
- java.lang.Enum<Alert.Risk>
-
- org.zaproxy.clientapi.core.Alert.Risk
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Alert.Risk>
- Enclosing class:
- Alert
public static enum Alert.Risk extends java.lang.Enum<Alert.Risk>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description High
Informational
Low
Medium
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Alert.Risk
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Alert.Risk[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Informational
public static final Alert.Risk Informational
-
Low
public static final Alert.Risk Low
-
Medium
public static final Alert.Risk Medium
-
High
public static final Alert.Risk High
-
-
Method Detail
-
values
public static Alert.Risk[] 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 (Alert.Risk c : Alert.Risk.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Alert.Risk 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
-
-