1 // Copyright 2009 The Android Open Source Project 2 3 package com.google.wireless.gdata2.contacts.data; 4 5 import com.google.wireless.gdata2.data.Entry; 6 import com.google.wireless.gdata2.data.StringUtils; 7 8 /** 9 * Entry containing information about a contact group. 10 */ 11 public class GroupEntry extends Entry { 12 // If this is a system group then this field will be set with the name of the system group. 13 private String systemGroup = null; 14 GroupEntry()15 public GroupEntry() { 16 super(); 17 } 18 getSystemGroup()19 public String getSystemGroup() { 20 return systemGroup; 21 } 22 clear()23 public void clear() { 24 super.clear(); 25 systemGroup = null; 26 } 27 setSystemGroup(String systemGroup)28 public void setSystemGroup(String systemGroup) { 29 this.systemGroup = systemGroup; 30 } 31 toString(StringBuffer sb)32 protected void toString(StringBuffer sb) { 33 super.toString(sb); 34 sb.append("\n"); 35 sb.append("GroupEntry:"); 36 if (!StringUtils.isEmpty(systemGroup)) { 37 sb.append(" systemGroup:").append(systemGroup).append("\n"); 38 } 39 } 40 } 41