org.jivesoftware.xiff.data.im

class RosterItem

Object | +--org.jivesoftware.xiff.data.XMLStanza | +--org.jivesoftware.xiff.data.im.RosterItem
Implemented Interfaces: ISerializable

class RosterItem extends XMLStanza
This class is used internally by the RosterExtension class for managing items received and sent as roster data. Usually, each item in the roster represents a single contact, and this class is used to represent, abstract, and serialize/deserialize this data.

Field Summary

public static ELEMENT: String
Fields inherited from class org.jivesoftware.xiff.data.XMLStanza

Property Summary

public jid: String (read, write)
The JID for this roster item.
public name: String (read, write)
The display name for this roster item.
public subscription: String (read, write)
The subscription type for this roster item. Subscription types have been enumerated by static variables in the RosterExtension:
  • RosterExtension.SUBSCRIBE_TYPE_NONE
  • RosterExtension.SUBSCRIBE_TYPE_TO
  • RosterExtension.SUBSCRIBE_TYPE_FROM
  • RosterExtension.SUBSCRIBE_TYPE_BOTH
  • RosterExtension.SUBSCRIBE_TYPE_REMOVE

Constructor

public RosterItem ( parent: XMLNode)

Method Summary

public addGroup ( groupName: String ): Void
Adds a group to the roster item. Contacts in the roster can be associated with multiple groups.
public deserialize ( node: XMLNode ): Boolean
Deserializes the RosterItem data.
public getGroupCount ( ): Number
public getGroups ( ): Array
Gets a list of all the groups associated with this roster item.
public removeAllGroups ( ): Void
public removeGroupByName ( groupName: String ): Boolean
public serialize ( parent: XMLNode ): Boolean
Serializes the RosterItem data to XML for sending.
Methods inherited from class org.jivesoftware.xiff.data.XMLStanza

Field Documentation

ELEMENT

public static var ELEMENT: String

    Property Documentation


    Constructor Documentation