public interface ContactGroup
Modifier and Type | Method and Description |
---|---|
boolean |
canContainSubgroups()
Determines whether the group may contain subgroups or not.
|
java.util.Iterator<Contact> |
contacts()
Returns an Iterator over all contacts, member of this
ContactGroup.
|
int |
countContacts()
Returns the number of Contact members of this
ContactGroup
|
int |
countSubgroups()
Returns the number of subgroups contained by this ContactGroup.
|
Contact |
getContact(java.lang.String id)
Returns the Contact with the specified address or
identifier.
|
ContactGroup |
getGroup(int index)
Returns the subgroup with the specified index.
|
ContactGroup |
getGroup(java.lang.String groupName)
Returns the subgroup with the specified name.
|
java.lang.String |
getGroupName()
Returns the name of this group.
|
ContactGroup |
getParentContactGroup()
Returns the contact group that currently contains this group or null if
this is the root contact group.
|
java.lang.String |
getPersistentData()
Returns a String that can be used to create a unresolved instance of
this group.
|
ProtocolProviderService |
getProtocolProvider()
Returns the protocol provider that this group belongs to.
|
java.lang.String |
getUID()
Returns a String that uniquely represents the group inside
the current protocol.
|
boolean |
isPersistent()
Determines whether or not this contact group is being stored by the
server.
|
boolean |
isResolved()
Determines whether or not this group has been resolved against the server.
|
java.util.Iterator<ContactGroup> |
subgroups()
Returns an iterator over the sub groups that this
ContactGroup contains.
|
java.util.Iterator<ContactGroup> subgroups()
int countSubgroups()
ContactGroup getGroup(int index)
index
- the index of the ContactGroup to retrieve.ContactGroup getGroup(java.lang.String groupName)
groupName
- the name of the ContactGroup to retrieve.java.util.Iterator<Contact> contacts()
int countContacts()
Contact getContact(java.lang.String id)
id
- the addres or identifier of the Contact we are
looking for.boolean canContainSubgroups()
java.lang.String getGroupName()
ProtocolProviderService getProtocolProvider()
ContactGroup getParentContactGroup()
boolean isPersistent()
java.lang.String getUID()
boolean isResolved()
java.lang.String getPersistentData()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.