diff options
Diffstat (limited to 'src/com/google/wireless/gdata/contacts/data/GroupEntry.java')
-rw-r--r-- | src/com/google/wireless/gdata/contacts/data/GroupEntry.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/com/google/wireless/gdata/contacts/data/GroupEntry.java b/src/com/google/wireless/gdata/contacts/data/GroupEntry.java new file mode 100644 index 0000000..2218995 --- /dev/null +++ b/src/com/google/wireless/gdata/contacts/data/GroupEntry.java @@ -0,0 +1,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"); + } + } +} |