FileDocCategorySizeDatePackage
ContactEntry.javaAPI DocAndroid 1.5 API6699Wed May 06 22:41:16 BST 2009com.google.wireless.gdata.contacts.data

ContactEntry

public class ContactEntry extends com.google.wireless.gdata.data.Entry
Entry containing information about a contact.

Fields Summary
private String
linkPhotoHref
private String
linkEditPhotoHref
private String
linkPhotoType
private String
linkEditPhotoType
private final Vector
emailAddresses
private final Vector
imAddresses
private final Vector
phoneNumbers
private final Vector
postalAddresses
private final Vector
organizations
private final Vector
extendedProperties
private final Vector
groups
private String
yomiName
Constructors Summary
public ContactEntry()


    
    super();
  
Methods Summary
public voidaddEmailAddress(EmailAddress emailAddress)

    emailAddresses.addElement(emailAddress);
  
public voidaddExtendedProperty(com.google.wireless.gdata.data.ExtendedProperty extendedProperty)

    extendedProperties.addElement(extendedProperty);
  
public voidaddGroup(GroupMembershipInfo group)

    groups.addElement(group);
  
public voidaddImAddress(ImAddress imAddress)

    imAddresses.addElement(imAddress);
  
public voidaddOrganization(Organization organization)

    organizations.addElement(organization);
  
public voidaddPhoneNumber(PhoneNumber phoneNumber)

    phoneNumbers.addElement(phoneNumber);
  
public voidaddPostalAddress(PostalAddress postalAddress)

    postalAddresses.addElement(postalAddress);
  
public voidclear()

    super.clear();
    linkEditPhotoHref = null;
    linkEditPhotoType = null;
    linkPhotoHref = null;
    linkPhotoType = null;
    emailAddresses.removeAllElements();
    imAddresses.removeAllElements();
    phoneNumbers.removeAllElements();
    postalAddresses.removeAllElements();
    organizations.removeAllElements();
    extendedProperties.removeAllElements();
    groups.removeAllElements();
    yomiName = null;
  
public java.util.VectorgetEmailAddresses()

    return emailAddresses;
  
public java.util.VectorgetExtendedProperties()

    return extendedProperties;
  
public java.util.VectorgetGroups()

    return groups;
  
public java.util.VectorgetImAddresses()

    return imAddresses;
  
public java.lang.StringgetLinkEditPhotoHref()

    return linkEditPhotoHref;
  
public java.lang.StringgetLinkEditPhotoType()

    return linkEditPhotoType;
  
public java.lang.StringgetLinkPhotoHref()

    return linkPhotoHref;
  
public java.lang.StringgetLinkPhotoType()

    return linkPhotoType;
  
public java.util.VectorgetOrganizations()

    return organizations;
  
public java.util.VectorgetPhoneNumbers()

    return phoneNumbers;
  
public java.util.VectorgetPostalAddresses()

    return postalAddresses;
  
public java.lang.StringgetYomiName()

    return yomiName;
  
public voidsetLinkEditPhoto(java.lang.String href, java.lang.String type)

    this.linkEditPhotoHref = href;
    this.linkEditPhotoType = type;
  
public voidsetLinkPhoto(java.lang.String href, java.lang.String type)

    this.linkPhotoHref = href;
    this.linkPhotoType = type;
  
public voidsetYomiName(java.lang.String yomiName)

    this.yomiName = yomiName;
  
protected voidtoString(java.lang.StringBuffer sb)

    super.toString(sb);
    sb.append("\n");
    sb.append("ContactEntry:");
    if (!StringUtils.isEmpty(linkPhotoHref)) {
      sb.append(" linkPhotoHref:").append(linkPhotoHref).append("\n");
    }
    if (!StringUtils.isEmpty(linkPhotoType)) {
      sb.append(" linkPhotoType:").append(linkPhotoType).append("\n");
    }
    if (!StringUtils.isEmpty(linkEditPhotoHref)) {
      sb.append(" linkEditPhotoHref:").append(linkEditPhotoHref).append("\n");
    }
    if (!StringUtils.isEmpty(linkEditPhotoType)) {
      sb.append(" linkEditPhotoType:").append(linkEditPhotoType).append("\n");
    }
    for (Enumeration iter = emailAddresses.elements();
        iter.hasMoreElements(); ) {
      sb.append("  ");
      ((EmailAddress) iter.nextElement()).toString(sb);
      sb.append("\n");
    }
    for (Enumeration iter = imAddresses.elements();
        iter.hasMoreElements(); ) {
      sb.append("  ");
      ((ImAddress) iter.nextElement()).toString(sb);
      sb.append("\n");
    }
    for (Enumeration iter = postalAddresses.elements();
        iter.hasMoreElements(); ) {
      sb.append("  ");
      ((PostalAddress) iter.nextElement()).toString(sb);
      sb.append("\n");
    }
    for (Enumeration iter = phoneNumbers.elements();
        iter.hasMoreElements(); ) {
      sb.append("  ");
      ((PhoneNumber) iter.nextElement()).toString(sb);
      sb.append("\n");
    }
    for (Enumeration iter = organizations.elements();
        iter.hasMoreElements(); ) {
      sb.append("  ");
      ((Organization) iter.nextElement()).toString(sb);
      sb.append("\n");
    }
    for (Enumeration iter = extendedProperties.elements();
        iter.hasMoreElements(); ) {
      sb.append("  ");
      ((ExtendedProperty) iter.nextElement()).toString(sb);
      sb.append("\n");
    }
    for (Enumeration iter = groups.elements();
        iter.hasMoreElements(); ) {
      sb.append("  ");
      ((GroupMembershipInfo) iter.nextElement()).toString(sb);
      sb.append("\n");
    }
    if (!StringUtils.isEmpty(yomiName)) {
      sb.append(" yomiName:").append(yomiName).append("\n");
    }
  
public voidvalidate()

    super.validate();
    for (Enumeration iter = emailAddresses.elements(); iter.hasMoreElements(); ) {
      ((EmailAddress) iter.nextElement()).validate();
    }
    for (Enumeration iter = imAddresses.elements(); iter.hasMoreElements(); ) {
      ((ImAddress) iter.nextElement()).validate();
    }
    for (Enumeration iter = postalAddresses.elements(); iter.hasMoreElements(); ) {
      ((PostalAddress) iter.nextElement()).validate();
    }
    for (Enumeration iter = phoneNumbers.elements(); iter.hasMoreElements(); ) {
      ((PhoneNumber) iter.nextElement()).validate();
    }
    for (Enumeration iter = organizations.elements(); iter.hasMoreElements(); ) {
      ((Organization) iter.nextElement()).validate();
    }
    for (Enumeration iter = extendedProperties.elements(); iter.hasMoreElements(); ) {
      ((ExtendedProperty) iter.nextElement()).validate();
    }
    for (Enumeration iter = groups.elements(); iter.hasMoreElements(); ) {
      ((GroupMembershipInfo) iter.nextElement()).validate();
    }