public static enum DomainData.Role extends java.lang.Enum<DomainData.Role>
Enum Constant and Description |
---|
AbuseContact
abuse contact
|
GeneralRequest
general request
|
Holder
holder
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
denicToken
the DENIC token
|
private static java.util.Map<java.lang.String,DomainData.Role> |
tokenMap
map from the token to the type
|
Modifier and Type | Method and Description |
---|---|
static DomainData.Role |
fromToken(java.lang.String denicToken)
return the role for the given token
|
java.lang.String |
getDenicToken()
return the DENIC token
|
static DomainData.Role |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DomainData.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DomainData.Role Holder
public static final DomainData.Role GeneralRequest
public static final DomainData.Role AbuseContact
private java.lang.String denicToken
private static final java.util.Map<java.lang.String,DomainData.Role> tokenMap
public static DomainData.Role[] values()
for (DomainData.Role c : DomainData.Role.values()) System.out.println(c);
public static DomainData.Role 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 DomainData.Role fromToken(java.lang.String denicToken)
denicToken
- the tokennull
if the
token is not foundCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH