Smack

org.jivesoftware.smack.packet
Class RosterPacket.ItemType

java.lang.Object
  extended by org.jivesoftware.smack.packet.RosterPacket.ItemType
Enclosing class:
RosterPacket

public static class RosterPacket.ItemType
extends Object

The subscription type of a roster item.


Field Summary
static RosterPacket.ItemType BOTH
          The user and subscriber have a mutual interest in each other's presence.
static RosterPacket.ItemType FROM
          The subscriber is interested in receiving presence updates from the user.
static RosterPacket.ItemType NONE
          The user and subscriber have no interest in each other's presence.
static RosterPacket.ItemType REMOVE
          The user wishes to stop receiving presence updates from the subscriber.
static RosterPacket.ItemType TO
          The user is interested in receiving presence updates from the subscriber.
 
Constructor Summary
RosterPacket.ItemType(String value)
          Returns the item type associated with the specified string.
 
Method Summary
static RosterPacket.ItemType fromString(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final RosterPacket.ItemType NONE
The user and subscriber have no interest in each other's presence.


TO

public static final RosterPacket.ItemType TO
The user is interested in receiving presence updates from the subscriber.


FROM

public static final RosterPacket.ItemType FROM
The subscriber is interested in receiving presence updates from the user.


BOTH

public static final RosterPacket.ItemType BOTH
The user and subscriber have a mutual interest in each other's presence.


REMOVE

public static final RosterPacket.ItemType REMOVE
The user wishes to stop receiving presence updates from the subscriber.

Constructor Detail

RosterPacket.ItemType

public RosterPacket.ItemType(String value)
Returns the item type associated with the specified string.

Parameters:
value - the item type.
Method Detail

fromString

public static RosterPacket.ItemType fromString(String value)

toString

public String toString()
Overrides:
toString in class Object

Smack

Copyright © 2003 Jive Software.