org.jivesoftware.smack.packet
Class RosterPacket
java.lang.Object
   org.jivesoftware.smack.packet.Packet
org.jivesoftware.smack.packet.Packet
       org.jivesoftware.smack.packet.IQ
org.jivesoftware.smack.packet.IQ
           org.jivesoftware.smack.packet.RosterPacket
org.jivesoftware.smack.packet.RosterPacket
- public class RosterPacket 
- extends IQ
Represents XMPP roster packets.
- Author:
- Matt Tucker
 
| Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ | 
| IQ.Type | 
 
 
 
 
 
 
| Methods inherited from class org.jivesoftware.smack.packet.Packet | 
| addExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo | 
 
 
RosterPacket
public RosterPacket()
addRosterItem
public void addRosterItem(RosterPacket.Item item)
- Adds a roster item to the packet.
 
- 
- Parameters:
- item- a roster item.
 
getRosterItemCount
public int getRosterItemCount()
- Returns the number of roster items in this roster packet.
 
- 
- Returns:
- the number of roster items.
 
getRosterItems
public Collection<RosterPacket.Item> getRosterItems()
- Returns an unmodifiable collection for the roster items in the packet.
 
- 
- Returns:
- an unmodifiable collection for the roster items in the packet.
 
getChildElementXML
public String getChildElementXML()
- Description copied from class: IQ
- Returns the sub-element XML section of the IQ packet, or null if there
 isn't one. Packet extensions must be included, if any are defined.
 Extensions of this class must override this method.
 
 
- 
- Specified by:
- getChildElementXMLin class- IQ
 
- 
- Returns:
- the child element section of the IQ XML.
 
Copyright © 2003-2007 Jive Software.