|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.yahoo.AbstractContactGroupYahooImpl
net.java.sip.communicator.impl.protocol.yahoo.RootContactGroupYahooImpl
public class RootContactGroupYahooImpl
A dummy ContactGroup implementation representing the ContactList root for Yahoo contact lists.
| Constructor Summary | |
|---|---|
RootContactGroupYahooImpl(ProtocolProviderServiceYahooImpl protocolProvider)
Creates a ContactGroup instance. |
|
| Method Summary | |
|---|---|
(package private) void |
addSubGroup(ContactGroupYahooImpl group)
Adds the specified group to the end of the list of sub groups. |
boolean |
canContainSubgroups()
The ContactListRoot is the only group that can contain subgroups. |
Iterator<Contact> |
contacts()
Returns an Iterator over all contacts, member of this ContactGroup. |
int |
countContacts()
Returns the number, which is always 0, of Contact members of this ContactGroup |
int |
countSubgroups()
Returns the number of subgroups contained by this RootContactGroupImpl. |
Contact |
getContact(String id)
Returns the Contact with the specified address or identifier. |
ContactGroup |
getGroup(int index)
Returns the subgroup with the specified index. |
ContactGroup |
getGroup(String groupName)
Returns the subgroup with the specified name. |
String |
getGroupName()
Returns the name of this group which is always ROOT_CONTACT_GROUP_NAME. |
ContactGroup |
getParentContactGroup()
Returns null as this is the root contact group. |
String |
getPersistentData()
Returns null as no persistent data is required and the group name is sufficient for restoring the contact. |
ProtocolProviderService |
getProtocolProvider()
Returns the protocol provider that this group belongs to. |
String |
getUID()
Returns a String that uniquely represnets the group. |
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. |
(package private) void |
removeSubGroup(ContactGroupYahooImpl group)
Removes the specified from the list of sub groups |
(package private) void |
removeSubGroup(int index)
Removes the sub group with the specified index. |
Iterator<ContactGroup> |
subgroups()
Returns an iterator over the sub groups that this ContactGroup contains. |
String |
toString()
Returns a string representation of the root contact group that contains all subgroups and subcontacts of this group. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
RootContactGroupYahooImpl(ProtocolProviderServiceYahooImpl protocolProvider)
| Method Detail |
|---|
public boolean canContainSubgroups()
public String getGroupName()
void addSubGroup(ContactGroupYahooImpl group)
group - the group to add.void removeSubGroup(ContactGroupYahooImpl group)
group - the group to remove.void removeSubGroup(int index)
index - the index of the group to removepublic int countSubgroups()
public ContactGroup getParentContactGroup()
public ContactGroup getGroup(int index)
index - the index of the ContactGroup to retrieve.
public ContactGroup getGroup(String groupName)
groupName - the name of the ContactGroup to retrieve.
public Iterator<ContactGroup> subgroups()
public int countContacts()
public Iterator<Contact> contacts()
public Contact getContact(String id)
id - the addres or identifier of the Contact we are
looking for.
public String toString()
toString in class Objectpublic ProtocolProviderService getProtocolProvider()
public boolean isPersistent()
public String getPersistentData()
public boolean isResolved()
public String getUID()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||