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

Organization

public class Organization extends ContactsElement
The Organization GData type.

Fields Summary
public static final byte
TYPE_WORK
public static final byte
TYPE_OTHER
private String
name
private String
title
Constructors Summary
Methods Summary
public java.lang.StringgetName()


     
    return name;
  
public java.lang.StringgetTitle()

    return title;
  
public voidsetName(java.lang.String name)

    this.name = name;
  
public voidsetTitle(java.lang.String title)

    this.title = title;
  
public voidtoString(java.lang.StringBuffer sb)

    sb.append("Organization");
    super.toString(sb);
    if (name != null) sb.append(" name:").append(name);
    if (title != null) sb.append(" title:").append(title);
  
public voidvalidate()

    super.validate();

    if (name == null && title == null) {
      throw new ParseException("at least one of name or title must be present");
    }