summaryrefslogtreecommitdiff
path: root/src/com/google/wireless/gdata/contacts/data/GroupEntry.java
blob: 22189953e9f15b2b4240f7bfc04bf56986e2b76c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.google.wireless.gdata.contacts.data;

import com.google.wireless.gdata.data.Entry;
import com.google.wireless.gdata.data.StringUtils;

/**
 * Entry containing information about a contact group.
 */
public class GroupEntry extends Entry {
  // If this is a system group then this field will be set with the name of the system group.
  private String systemGroup = null;

  public GroupEntry() {
    super();
  }

  public String getSystemGroup() {
    return systemGroup;
  }

  @Override
  public void clear() {
    super.clear();
    systemGroup = null;
  }

  public void setSystemGroup(String systemGroup) {
    this.systemGroup = systemGroup;
  }

  protected void toString(StringBuffer sb) {
    super.toString(sb);
    sb.append("\n");
    sb.append("GroupEntry:");
    if (!StringUtils.isEmpty(systemGroup)) {
      sb.append(" systemGroup:").append(systemGroup).append("\n");
    }
  }
}