public enum ResponseFormat extends Enum<ResponseFormat>
Modifier and Type | Method and Description |
---|---|
String |
format() |
static ResponseFormat |
formatFor(String s) |
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.
|
public static final ResponseFormat TEXT
public static final ResponseFormat XML
public static final ResponseFormat HTML
public static final ResponseFormat NONE
public static ResponseFormat[] values()
for (ResponseFormat c : ResponseFormat.values()) System.out.println(c);
public static ResponseFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String format()
public static ResponseFormat formatFor(String s)
public String toString()
toString
in class Enum<ResponseFormat>
Copyright © 1999–2017 UCAR/Unidata. All rights reserved.