diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
commit | 27eda2eccd3729366a5545a21238ee9b2960171c (patch) | |
tree | 998a9af735ff91bb16c05e8411ac282c1fb57b48 /src/com/google/wireless/gdata/contacts/data/GroupEntry.java | |
download | gdata-27eda2eccd3729366a5545a21238ee9b2960171c.tar.gz |
Initial Contributionandroid-1.0release-1.0cdma-import
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"); + } + } +} |