core.types
Class PresenceType

java.lang.Object
  extended bycore.types.PresenceType

public final class PresenceType
extends java.lang.Object

Author:
hoela

Field Summary
static PresenceType AVAILABLE
           
static PresenceType ERROR
           
 int ord
           
static PresenceType PROBE
           
static PresenceType SUBSCRIBE
           
static PresenceType SUBSCRIBED
           
static PresenceType UNAVAILABLE
           
static PresenceType UNSUBSCRIBE
           
static PresenceType UNSUBSCRIBED
           
 
Method Summary
static java.util.Enumeration elements()
          Creates an enumeration from all available types.
static PresenceType first()
           
static PresenceType last()
           
 PresenceType next()
           
 PresenceType 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

UNAVAILABLE

public static final PresenceType UNAVAILABLE

AVAILABLE

public static final PresenceType AVAILABLE

SUBSCRIBE

public static final PresenceType SUBSCRIBE

SUBSCRIBED

public static final PresenceType SUBSCRIBED

UNSUBSCRIBE

public static final PresenceType UNSUBSCRIBE

UNSUBSCRIBED

public static final PresenceType UNSUBSCRIBED

PROBE

public static final PresenceType PROBE

ERROR

public static final PresenceType ERROR
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 PresenceType first()
Returns:
first element of an Enumeration of PresenceTypes

last

public static PresenceType last()
Returns:
last element of an Enumeration of PresenceTypes

prev

public PresenceType prev()
Returns:
previous element of an Enumeration of PresenceTypes

next

public PresenceType next()
Returns:
next element of an Enumeration of PresenceTypes