public class RosterPacket extends IQ
Modifier and Type | Class and Description |
---|---|
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.
|
static class |
RosterPacket.ItemStatus
The subscription status of a roster item.
|
static class |
RosterPacket.ItemType
The subscription type of a roster item.
|
ID_NOT_AVAILABLE
Constructor and Description |
---|
RosterPacket() |
Modifier and Type | Method and Description |
---|---|
void |
addRosterItem(RosterPacket.Item item)
Adds a roster item to the packet.
|
java.lang.String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
int |
getRosterItemCount()
Returns the number of roster items in this roster packet.
|
java.util.Iterator |
getRosterItems()
Returns an Iterator for the roster items in the packet.
|
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo
public void addRosterItem(RosterPacket.Item item)
item
- a roster item.public int getRosterItemCount()
public java.util.Iterator getRosterItems()
public java.lang.String getChildElementXML()
IQ
Extensions of this class must override this method.
getChildElementXML
in class IQ
Copyright © 2003 Jive Software.