Smack

org.jivesoftware.smack.packet
Class Presence.Type

java.lang.Object
  extended by org.jivesoftware.smack.packet.Presence.Type
Enclosing class:
Presence

public static class Presence.Type
extends Object

A typsafe enum class to represent the presecence type.


Field Summary
static Presence.Type AVAILABLE
           
static Presence.Type ERROR
           
static Presence.Type SUBSCRIBE
           
static Presence.Type SUBSCRIBED
           
static Presence.Type UNAVAILABLE
           
static Presence.Type UNSUBSCRIBE
           
static Presence.Type UNSUBSCRIBED
           
 
Method Summary
static Presence.Type fromString(String value)
          Returns the type constant associated with the String value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AVAILABLE

public static final Presence.Type AVAILABLE

UNAVAILABLE

public static final Presence.Type UNAVAILABLE

SUBSCRIBE

public static final Presence.Type SUBSCRIBE

SUBSCRIBED

public static final Presence.Type SUBSCRIBED

UNSUBSCRIBE

public static final Presence.Type UNSUBSCRIBE

UNSUBSCRIBED

public static final Presence.Type UNSUBSCRIBED

ERROR

public static final Presence.Type ERROR
Method Detail

toString

public String toString()
Overrides:
toString in class Object

fromString

public static Presence.Type fromString(String value)
Returns the type constant associated with the String value.


Smack

Copyright © 2003 Jive Software.