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

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

public enum OpCode
extends java.lang.Enum<OpCode>
implements EnumConverter<java.lang.Byte>

Version:
$Rev: 547524 $, $Date: 2007-06-15 06:42:26 +0200 (Fri, 15 Jun 2007) $
Author:
Apache Directory Project

Enum Constant Summary
IQUERY
          Inverse query
NOTIFY
          Zone transfer notification
QUERY
          Standard query
STATUS
          Server status request
UPDATE
          Dynamic update message
 
Method Summary
 java.lang.Byte convert()
          Convert the enum to another type.
static OpCode convert(byte value)
          Converts an ordinal value into an OpCode.
static OpCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OpCode[] 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

QUERY

public static final OpCode QUERY
Standard query


IQUERY

public static final OpCode IQUERY
Inverse query


STATUS

public static final OpCode STATUS
Server status request


NOTIFY

public static final OpCode NOTIFY
Zone transfer notification


UPDATE

public static final OpCode UPDATE
Dynamic update message

Method Detail

values

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

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

valueOf

public static OpCode 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.Byte convert()
Description copied from interface: EnumConverter
Convert the enum to another type.

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

convert

public static OpCode convert(byte value)
Converts an ordinal value into an OpCode.

Parameters:
value -
Returns:
The OpCode.


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