Package org.xmpp.packet
Class Roster.Item
- java.lang.Object
-
- org.xmpp.packet.Roster.Item
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Roster.AskgetAsk()Returns the ask state of this item.Collection<String>getGroups()Returns a Collection of the groups defined in this item.JIDgetJID()Returns the JID associated with this item.StringgetName()Returns the nickname associated with this item.Roster.SubscriptiongetSubscription()Returns the subscription state of this item.StringtoString()
-
-
-
Method Detail
-
getJID
public JID 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
public String getName()
Returns the nickname associated with this item. If no nickname exists,nullis returned.- Returns:
- the nickname, or
nullif it doesn't exist.
-
getAsk
public Roster.Ask getAsk()
Returns the ask state of this item.- Returns:
- the ask state of this item.
-
getSubscription
public Roster.Subscription getSubscription()
Returns the subscription state of this item.- Returns:
- the subscription state of this item.
-
getGroups
public Collection<String> 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.
-
-