Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.ContactJabberImpl
      extended by net.java.sip.communicator.impl.protocol.jabber.VolatileContactJabberImpl
All Implemented Interfaces:
Contact

public class VolatileContactJabberImpl
extends ContactJabberImpl

The Jabber implementation for Volatile Contact

Author:
Damian Minkov

Constructor Summary
VolatileContactJabberImpl(String id, ServerStoredContactListJabberImpl ssclCallback)
          Creates an Volatile JabberContactImpl with the specified id
 
Method Summary
 String getAddress()
          Returns the Jabber Userid of this contact
 String getDisplayName()
          Returns a String that could be used by any user interacting modules for referring to this contact.
 boolean isPersistent()
          Determines whether or not this contact group is being stored by the server.
 String toString()
          Returns a string representation of this contact, containing most of its representative details.
 
Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.ContactJabberImpl
equals, getImage, getImage, getParentContactGroup, getPersistentData, getPresenceStatus, getProtocolProvider, getServerDisplayName, getSourceEntry, getStatusMessage, hashCode, isLocal, isResolved, setImage, setPersistent, setPersistentData, setResolved, setServerDisplayName, setStatusMessage, updatePresenceStatus
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VolatileContactJabberImpl

VolatileContactJabberImpl(String id,
                          ServerStoredContactListJabberImpl ssclCallback)
Creates an Volatile JabberContactImpl with the specified id

Parameters:
id - String the user id/address
ssclCallback - a reference to the ServerStoredContactListImpl instance that created us.
Method Detail

getAddress

public String getAddress()
Returns the Jabber Userid of this contact

Specified by:
getAddress in interface Contact
Overrides:
getAddress in class ContactJabberImpl
Returns:
the Jabber Userid of this contact

getDisplayName

public String getDisplayName()
Returns a String that could be used by any user interacting modules for referring to this contact. An alias is not necessarily unique but is often more human readable than an address (or id).

Specified by:
getDisplayName in interface Contact
Overrides:
getDisplayName in class ContactJabberImpl
Returns:
a String that can be used for referring to this contact when interacting with the user.

toString

public String toString()
Returns a string representation of this contact, containing most of its representative details.

Overrides:
toString in class ContactJabberImpl
Returns:
a string representation of this contact.

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 Contact
Overrides:
isPersistent in class ContactJabberImpl
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.