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

GroupMembershipInfo.java

package com.google.wireless.gdata.contacts.data;

import com.google.wireless.gdata.data.StringUtils;
import com.google.wireless.gdata.parser.ParseException;

/** The groupMembershipInfo GData type. */
public class GroupMembershipInfo {
  private String group;
  private boolean deleted;

  public String getGroup() {
    return group;
  }

  public void setGroup(String group) {
    this.group = group;
  }

  public boolean isDeleted() {
    return deleted;
  }

  public void setDeleted(boolean deleted) {
    this.deleted = deleted;
  }

  public void toString(StringBuffer sb) {
    sb.append("GroupMembershipInfo");
    if (group != null) sb.append(" group:").append(group);
    sb.append(" deleted:").append(deleted);
  }

  public void validate() throws ParseException {
    if (StringUtils.isEmpty(group)) {
      throw new ParseException("the group must be present");
    }
  }
}