Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTaskAttribute.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTaskAttribute.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTaskAttribute.java
index 2d4778b9c..c34b4d98a 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTaskAttribute.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTaskAttribute.java
@@ -13,6 +13,7 @@ package org.eclipse.mylar.tasks.core;
import java.io.Serializable;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -268,6 +269,10 @@ public class RepositoryTaskAttribute implements Serializable {
return true;
}
+ public void clearMetaData() {
+ metaData.clear();
+ }
+
public void putMetaDataValue(String key, String value) {
metaData.put(key, value);
}
@@ -279,5 +284,8 @@ public class RepositoryTaskAttribute implements Serializable {
public void removeMetaDataValue(String key) {
metaData.remove(key);
}
-
+
+ public Map<String, String> getMetaData() {
+ return Collections.unmodifiableMap(metaData);
+ }
}

Back to the top