public class RemoteRosterEntry extends Object
The idea of a RemoteRosterEntry is to be used as part of a roster exchange.
| Constructor and Description |
|---|
RemoteRosterEntry(String user,
String name,
String[] groups)
Creates a new remote roster entry.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getGroupArrayNames()
Returns a String array for the group names that the roster entry
belongs to.
|
Iterator<String> |
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() |
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.public Iterator<String> getGroupNames()
public String[] getGroupArrayNames()