de.knipp.rritoolkit
Enum DomainData.DomainState

java.lang.Object
  extended by java.lang.Enum<DomainData.DomainState>
      extended by de.knipp.rritoolkit.DomainData.DomainState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DomainData.DomainState>
Enclosing class:
DomainData

public static enum DomainData.DomainState
extends java.lang.Enum<DomainData.DomainState>

enumeration for the different states of the domain

Version:
$Revision: 14987 $
Author:
Klaus Malorny

Enum Constant Summary
Connect
          connected, i.e. normally registered
Failed
          registered, but on hold due to failed DNS checks
Free
          free
Invalid
          invalid
 
Field Summary
private  java.lang.String denicToken
          the DENIC token
private static java.util.Map<java.lang.String,DomainData.DomainState> tokenMap
          map from the token to the type
 
Method Summary
static DomainData.DomainState fromToken(java.lang.String denicToken)
          return the state for the given token
 java.lang.String getDenicToken()
          return the DENIC token
static DomainData.DomainState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DomainData.DomainState[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Free

public static final DomainData.DomainState Free
free


Connect

public static final DomainData.DomainState Connect
connected, i.e. normally registered


Failed

public static final DomainData.DomainState Failed
registered, but on hold due to failed DNS checks


Invalid

public static final DomainData.DomainState Invalid
invalid

Field Detail

denicToken

private java.lang.String denicToken
the DENIC token


tokenMap

private static final java.util.Map<java.lang.String,DomainData.DomainState> tokenMap
map from the token to the type

Method Detail

values

public static DomainData.DomainState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DomainData.DomainState c : DomainData.DomainState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DomainData.DomainState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getDenicToken

public java.lang.String getDenicToken()
return the DENIC token

Returns:
the token

fromToken

public static DomainData.DomainState fromToken(java.lang.String denicToken)
return the state for the given token

Parameters:
denicToken - the token
Returns:
the state, or null if the token is not found


Copyright © 2005-2011 Knipp Medien und Kommunikation GmbH