public static enum Response.Result extends java.lang.Enum<Response.Result>
Enum Constant and Description |
---|
Exception
exception
|
Failed
failed
|
Success
success
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
denicToken
the DENIC token
|
private static java.util.Map<java.lang.String,Response.Result> |
tokenMap
map from the token to the result
|
Modifier and Type | Method and Description |
---|---|
static Response.Result |
fromToken(java.lang.String denicToken)
return the result for the given token
|
java.lang.String |
getDenicToken()
return the DENIC token
|
static Response.Result |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Response.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Response.Result Success
public static final Response.Result Failed
public static final Response.Result Exception
private java.lang.String denicToken
private static final java.util.Map<java.lang.String,Response.Result> tokenMap
public static Response.Result[] values()
for (Response.Result c : Response.Result.values()) System.out.println(c);
public static Response.Result valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDenicToken()
public static Response.Result fromToken(java.lang.String denicToken)
denicToken
- the tokennull
if the
token is not foundCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH