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

ImpsUserAddress

public class ImpsUserAddress extends ImpsAddress

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

    
public ImpsUserAddress(String full, boolean verify)

        super(full, verify);
        if(verify && (mUser == null || mResource != null)) {
            throw new IllegalArgumentException();
        }
    
public ImpsUserAddress(String full)

        this(full, false);
    
public ImpsUserAddress(String user, String domain)

        super(user, null, domain);
    
Methods Summary
public com.android.im.engine.ImEntitygetEntity(ImpsConnection connection)

        ContactListManager manager = connection.getContactListManager();
        for(ContactList list : manager.getContactLists()) {
            Contact contact = list.getContact(this);
            if(contact != null) {
                return contact;
            }
        }
        //TODO: add to a stranger list?
        return new Contact(this, this.getUser());
    
public java.lang.StringgetScreenName()

        return mUser;
    
public PrimitiveElementtoPrimitiveElement()

        PrimitiveElement user = new PrimitiveElement(ImpsTags.User);
        user.addChild(ImpsTags.UserID, getFullName());
        return user;