|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smackx.RemoteRosterEntry
public class RemoteRosterEntry
Represents a roster item, which consists of a JID and , their name and the groups the roster item belongs to. This roster item does not belong to the local roster. Therefore, it does not persist in the server.
The idea of a RemoteRosterEntry is to be used as part of a roster exchange.
Constructor Summary | |
---|---|
RemoteRosterEntry(String user,
String name,
String[] groups)
Creates a new remote roster entry. |
Method Summary | |
---|---|
String[] |
getGroupArrayNames()
Returns a String array for the group names that the roster entry belongs to. |
Iterator |
getGroupNames()
Returns an Iterator for the group names (as Strings) that the roster entry belongs to. |
String |
getName()
Returns the user's name. |
String |
getUser()
Returns the user. |
String |
toXML()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteRosterEntry(String user, String name, String[] groups)
user
- the user.name
- the user's name.groups
- the list of group names the entry will belong to, or null if the
the roster entry won't belong to a group.Method Detail |
---|
public String getUser()
public String getName()
public Iterator getGroupNames()
public String[] getGroupArrayNames()
public String toXML()
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |