core.types
Class MessageType

java.lang.Object
  extended bycore.types.MessageType

public final class MessageType
extends java.lang.Object

Author:
hoela

Field Summary
static MessageType ADDBUDDY
           
static MessageType ERROR
           
static MessageType MESSAGE
           
 int ord
           
static MessageType PRESENCE
           
static MessageType SEARCH
           
 
Method Summary
static java.util.Enumeration elements()
          Creates an enumeration from all available types.
static MessageType first()
           
static MessageType last()
           
 MessageType next()
           
 MessageType prev()
           
static int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ord

public final int ord

MESSAGE

public static final MessageType MESSAGE

PRESENCE

public static final MessageType PRESENCE

ERROR

public static final MessageType ERROR

ADDBUDDY

public static final MessageType ADDBUDDY

SEARCH

public static final MessageType SEARCH
Method Detail

elements

public static java.util.Enumeration elements()
Creates an enumeration from all available types.

Returns:
the Enumeration

toString

public java.lang.String toString()
Returns:
String representation of this type

size

public static int size()
Returns:
Number of types available

first

public static MessageType first()
Returns:
first element of an Enumeration of MessageTypes

last

public static MessageType last()
Returns:
last element of an Enumeration of MessageTypes

prev

public MessageType prev()
Returns:
previous element of an Enumeration of MessageTypes

next

public MessageType next()
Returns:
next element of an Enumeration of MessageTypes