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