Package org.xmpp.packet
Class Roster.Item
java.lang.Object
org.xmpp.packet.Roster.Item
- Enclosing class:
- Roster
Item in a roster, which represents an individual contact. Each contact
has a JID, an optional nickname, a subscription type, and can belong to
one ore more groups.
-
Method Summary
Modifier and TypeMethodDescriptiongetAsk()Returns the ask state of this item.Returns a Collection of the groups defined in this item.getJID()Returns the JID associated with this item.getName()Returns the nickname associated with this item.Returns the subscription state of this item.toString()
-
Method Details
-
getJID
Returns the JID associated with this item. The JID is the "key" in the list of items that make up a roster. There can only be a single item per JID in a roster.- Returns:
- the JID associated with this item.
-
getName
Returns the nickname associated with this item. If no nickname exists,nullis returned.- Returns:
- the nickname, or
nullif it doesn't exist.
-
getAsk
Returns the ask state of this item.- Returns:
- the ask state of this item.
-
getSubscription
Returns the subscription state of this item.- Returns:
- the subscription state of this item.
-
getGroups
Returns a Collection of the groups defined in this item. If no groups are defined, an empty Collection is returned.- Returns:
- the groups in this item.
-
toString
-