| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smack.packet.RosterPacket.Item
public static class RosterPacket.Item
A roster item, which consists of a JID, their name, the type of subscription, and the groups the roster item belongs to.
| Constructor Summary | |
|---|---|
| RosterPacket.Item(String user,
                  String name)Creates a new roster item. | |
| Method Summary | |
|---|---|
|  void | addGroupName(String groupName)Adds a group name. | 
|  Set<String> | getGroupNames()Returns an unmodifiable set of the group names that the roster item belongs to. | 
|  RosterPacket.ItemStatus | getItemStatus()Returns the roster item status. | 
|  RosterPacket.ItemType | getItemType()Returns the roster item type. | 
|  String | getName()Returns the user's name. | 
|  String | getUser()Returns the user. | 
|  void | removeGroupName(String groupName)Removes a group name. | 
|  void | setItemStatus(RosterPacket.ItemStatus itemStatus)Sets the roster item status. | 
|  void | setItemType(RosterPacket.ItemType itemType)Sets the roster item type. | 
|  void | setName(String name)Sets the user's name. | 
|  String | toXML() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RosterPacket.Item(String user,
                         String name)
user - the user.name - the user's name.| Method Detail | 
|---|
public String getUser()
public String getName()
public void setName(String name)
name - the user's name.public RosterPacket.ItemType getItemType()
public void setItemType(RosterPacket.ItemType itemType)
itemType - the roster item type.public RosterPacket.ItemStatus getItemStatus()
public void setItemStatus(RosterPacket.ItemStatus itemStatus)
itemStatus - the roster item status.public Set<String> getGroupNames()
public void addGroupName(String groupName)
groupName - the group name.public void removeGroupName(String groupName)
groupName - the group name.public String toXML()
| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||