org.apache.directory.server.dns.messages
Enum RecordClass

java.lang.Object
  extended by java.lang.Enum<RecordClass>
      extended by org.apache.directory.server.dns.messages.RecordClass
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RecordClass>, EnumConverter<java.lang.Short>

public enum RecordClass
extends java.lang.Enum<RecordClass>
implements EnumConverter<java.lang.Short>

Version:
$Rev: 613608 $, $Date: 2008-01-20 17:59:10 +0100 (Sun, 20 Jan 2008) $
Author:
Apache Directory Project

Enum Constant Summary
ANY
          Any class
CH
          CHAOS class
CS
          CSNET class
HS
          Hesiod [Dyer 87]
IN
          Internet
NONE
          Special value used in dynamic update messages
 
Method Summary
 java.lang.Short convert()
          Convert the enum to another type.
static RecordClass convert(short value)
          Converts an ordinal value into a RecordClass.
static RecordClass valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RecordClass[] 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

IN

public static final RecordClass IN
Internet


CS

public static final RecordClass CS
CSNET class


CH

public static final RecordClass CH
CHAOS class


HS

public static final RecordClass HS
Hesiod [Dyer 87]


NONE

public static final RecordClass NONE
Special value used in dynamic update messages


ANY

public static final RecordClass ANY
Any class

Method Detail

values

public static RecordClass[] 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 (RecordClass c : RecordClass.values())
    System.out.println(c);

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

valueOf

public static RecordClass 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

convert

public java.lang.Short convert()
Description copied from interface: EnumConverter
Convert the enum to another type.

Specified by:
convert in interface EnumConverter<java.lang.Short>
Returns:
The other type.

convert

public static RecordClass convert(short value)
Converts an ordinal value into a RecordClass.

Parameters:
value -
Returns:
The RecordClass.


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.