| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<WatchClient.Format>
eu.scape_project.watch.rest.WatchClient.Format
public static enum WatchClient.Format
The format of the output.
| Enum Constant Summary | |
|---|---|
| JSONUse JSON as output format. | |
| XMLUse XML as output format. | |
| Method Summary | |
|---|---|
|  String | getMediaType()Helper method to get related MediaType. | 
|  String | toString() | 
| static WatchClient.Format | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static WatchClient.Format[] | values()Returns an array containing the constants of this enum type, in the order they are declared. | 
| Methods inherited from class java.lang.Enum | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
public static final WatchClient.Format JSON
public static final WatchClient.Format XML
| Method Detail | 
|---|
public static WatchClient.Format[] values()
for (WatchClient.Format c : WatchClient.Format.values()) System.out.println(c);
public static WatchClient.Format valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<WatchClient.Format>public String getMediaType()
null if not applicable| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||