summaryrefslogtreecommitdiff
path: root/src/com/google/wireless/gdata/contacts/data/GroupEntry.java
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
commit27eda2eccd3729366a5545a21238ee9b2960171c (patch)
tree998a9af735ff91bb16c05e8411ac282c1fb57b48 /src/com/google/wireless/gdata/contacts/data/GroupEntry.java
downloadgdata-27eda2eccd3729366a5545a21238ee9b2960171c.tar.gz
Diffstat (limited to 'src/com/google/wireless/gdata/contacts/data/GroupEntry.java')
-rw-r--r--src/com/google/wireless/gdata/contacts/data/GroupEntry.java39
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");
+ }
+ }
+}