|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.jaxmpp.core.client.xmpp.modules.roster.RosterItem
public class RosterItem
Roster item. Contains information about buddy in roster.
| Nested Class Summary | |
|---|---|
static class |
RosterItem.Subscription
Susbcription state. |
| Field Summary | |
|---|---|
static String |
ID_KEY
|
| Constructor Summary | |
|---|---|
RosterItem(BareJID jid,
SessionObject sessionObject)
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(Object obj)
|
|
|
getData(String key)
Returns object stored by setData(String, Object). |
|
ArrayList<String> |
getGroups()
Returns groups associated to roster item. |
|
long |
getId()
Returns internal RosterItem object ID. |
|
BareJID |
getJid()
Returns JID of buddy. |
|
String |
getName()
Returns name of buddy. |
|
SessionObject |
getSessionObject()
Returns session object related to roster item. |
|
RosterItem.Subscription |
getSubscription()
Returns subscription state. |
|
int |
hashCode()
|
|
boolean |
isAsk()
Checks if subscription was requested. |
|
|
removeData(String key)
Removes data stored by setData(String, Object). |
|
void |
setAsk(boolean ask)
|
|
void |
setData(String key,
Object value)
Store object in roster item. |
|
void |
setName(String name)
|
|
void |
setSubscription(RosterItem.Subscription subscription)
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ID_KEY
| Constructor Detail |
|---|
public RosterItem(BareJID jid,
SessionObject sessionObject)
| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectpublic <T> T getData(String key)
key - the key whose associated value is to be returned
null if object doesn't exists.public ArrayList<String> getGroups()
public long getId()
public BareJID getJid()
public String getName()
public SessionObject getSessionObject()
public RosterItem.Subscription getSubscription()
public int hashCode()
hashCode in class Objectpublic boolean isAsk()
true subscription of this buddy was requested.public <T> T removeData(String key)
key - the key whose associated value is to be removed
null if value was not saved.public void setAsk(boolean ask)
public void setData(String key,
Object value)
key - the key whose associated value is to be savedvalue - values to savepublic void setName(String name)
public void setSubscription(RosterItem.Subscription subscription)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||