org.apache.directory.server.dns.messages
Class MessageType

java.lang.Object
  extended by org.apache.directory.server.dns.messages.MessageType
All Implemented Interfaces:
java.lang.Comparable

public final class MessageType
extends java.lang.Object
implements java.lang.Comparable


Field Summary
static MessageType QUERY
          Enumeration elements are constructed once upon class loading.
static MessageType RESPONSE
           
static java.util.List VALUES
           
 
Method Summary
 int compareTo(java.lang.Object that)
           
 int getOrdinal()
           
static MessageType getTypeByOrdinal(int type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY

public static final MessageType QUERY
Enumeration elements are constructed once upon class loading. Order of appearance here determines the order of compareTo.


RESPONSE

public static final MessageType RESPONSE

VALUES

public static final java.util.List VALUES
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object that)
Specified by:
compareTo in interface java.lang.Comparable

getTypeByOrdinal

public static MessageType getTypeByOrdinal(int type)

getOrdinal

public int getOrdinal()


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