Package dap4.dap4lib
Enum RequestMode
- java.lang.Object
-
- java.lang.Enum<RequestMode>
-
- dap4.dap4lib.RequestMode
-
- All Implemented Interfaces:
Serializable
,Comparable<RequestMode>
public enum RequestMode extends Enum<RequestMode>
Define the enum for the possible Request/Response modes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
extension()
String
id()
static RequestMode
idMode(String id)
static RequestMode
modeFor(String s)
String
toString()
static RequestMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static RequestMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DMR
public static final RequestMode DMR
-
DAP
public static final RequestMode DAP
-
DSR
public static final RequestMode DSR
-
CAPABILITIES
public static final RequestMode CAPABILITIES
-
ERROR
public static final RequestMode ERROR
-
NONE
public static final RequestMode NONE
-
-
Method Detail
-
values
public static RequestMode[] 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 (RequestMode c : RequestMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestMode valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
id
public String id()
-
extension
public String extension()
-
modeFor
public static RequestMode modeFor(String s)
-
idMode
public static RequestMode idMode(String id)
-
toString
public String toString()
- Overrides:
toString
in classEnum<RequestMode>
-
-