Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber
Class VolatileContactGroupJabberImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.AbstractContactGroupJabberImpl
      extended by net.java.sip.communicator.impl.protocol.jabber.ContactGroupJabberImpl
          extended by net.java.sip.communicator.impl.protocol.jabber.VolatileContactGroupJabberImpl
All Implemented Interfaces:
ContactGroup

public class VolatileContactGroupJabberImpl
extends ContactGroupJabberImpl

The Jabber implementation of the Volatile ContactGroup interface.

Author:
Damian Minkov

Constructor Summary
VolatileContactGroupJabberImpl(String groupName, ServerStoredContactListJabberImpl ssclCallback)
          Creates an Jabber group using the specified group name
 
Method Summary
 String getGroupName()
          Returns the name of this group.
 boolean isPersistent()
          Determines whether or not this contact group is being stored by the server.
 String toString()
          Returns a string representation of this group, in the form JabberGroup.GroupName[size]{ buddy1.toString(), buddy2.toString(), ...}.
 
Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.ContactGroupJabberImpl
addContact, canContainSubgroups, contacts, countContacts, countSubgroups, equals, findContact, getContact, getGroup, getGroup, getNameCopy, getParentContactGroup, getPersistentData, getProtocolProvider, getSourceGroup, getUID, hashCode, isResolved, removeContact, setNameCopy, setResolved, setSourceGroup, subgroups
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VolatileContactGroupJabberImpl

VolatileContactGroupJabberImpl(String groupName,
                               ServerStoredContactListJabberImpl ssclCallback)
Creates an Jabber group using the specified group name

Parameters:
groupName - String groupname
ssclCallback - a callback to the server stored contact list we're creating.
Method Detail

getGroupName

public String getGroupName()
Returns the name of this group.

Specified by:
getGroupName in interface ContactGroup
Overrides:
getGroupName in class ContactGroupJabberImpl
Returns:
a String containing the name of this group.

toString

public String toString()
Returns a string representation of this group, in the form JabberGroup.GroupName[size]{ buddy1.toString(), buddy2.toString(), ...}.

Overrides:
toString in class ContactGroupJabberImpl
Returns:
a String representation of the object.

isPersistent

public boolean isPersistent()
Determines whether or not this contact group is being stored by the server. Non persistent contact groups exist for the sole purpose of containing non persistent contacts.

Specified by:
isPersistent in interface ContactGroup
Overrides:
isPersistent in class ContactGroupJabberImpl
Returns:
true if the contact group is persistent and false otherwise.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.