FileDocCategorySizeDatePackage
ImpsContactListAddress.javaAPI DocAndroid 1.5 API2233Wed May 06 22:42:46 BST 2009com.android.im.imps

ImpsContactListAddress

public class ImpsContactListAddress extends ImpsAddress

Fields Summary
Constructors Summary
public ImpsContactListAddress()
Default Constructor. Required by AddressParcelHelper.

    
public ImpsContactListAddress(ImpsAddress userAddress, String name)

        super(userAddress.getUser(), name, userAddress.getDomain());
        if(mResource == null) {
            throw new IllegalArgumentException("resource can not be null");
        }
    
public ImpsContactListAddress(String full, boolean verify)

        super(full, verify);
        if(mResource == null) {
            throw new IllegalArgumentException("resource can not be null");
        }
    
public ImpsContactListAddress(String full)

        this(full, false);
    
Methods Summary
public com.android.im.engine.ImEntitygetEntity(ImpsConnection connection)

        ContactListManager manager = connection.getContactListManager();
        for(ContactList list : manager.getContactLists()) {
            if(list.getAddress().equals(this)) {
                return list;
            }
        }
        return null;
    
public java.lang.StringgetScreenName()

        return getResource();
    
public PrimitiveElementtoPrimitiveElement()

        PrimitiveElement contactList = new PrimitiveElement(ImpsTags.ContactList);
        contactList.setContents(getFullName());
        return contactList;