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