Package dap4.core.util
Enum ResponseFormat
- java.lang.Object
-
- java.lang.Enum<ResponseFormat>
-
- dap4.core.util.ResponseFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<ResponseFormat>
public enum ResponseFormat extends Enum<ResponseFormat>
Define the enum for the possible Response/Response modes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format()
static ResponseFormat
formatFor(String s)
String
id()
static ResponseFormat
idFormat(String id)
String
toString()
static ResponseFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResponseFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final ResponseFormat TEXT
-
XML
public static final ResponseFormat XML
-
HTML
public static final ResponseFormat HTML
-
NONE
public static final ResponseFormat NONE
-
-
Method Detail
-
values
public static ResponseFormat[] 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 (ResponseFormat c : ResponseFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResponseFormat 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()
-
format
public String format()
-
formatFor
public static ResponseFormat formatFor(String s)
-
idFormat
public static ResponseFormat idFormat(String id)
-
toString
public String toString()
- Overrides:
toString
in classEnum<ResponseFormat>
-
-