Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-20 10:40:43 -0400
committermkersten2007-06-20 10:40:43 -0400
commit42b6f01b94445b8314838b5878783c0812efd703 (patch)
tree9519e98a22e42a3da1f81e334ebe43e21b67fe21 /org.eclipse.mylyn.tasks.core
parent1fdd9743205d4abf1b49a5aa3fa9a1a1fc28237c (diff)
downloadorg.eclipse.mylyn.tasks-42b6f01b94445b8314838b5878783c0812efd703.tar.gz
org.eclipse.mylyn.tasks-42b6f01b94445b8314838b5878783c0812efd703.tar.xz
org.eclipse.mylyn.tasks-42b6f01b94445b8314838b5878783c0812efd703.zip
ASSIGNED - bug 173150: manage Mylar participation in Europa
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173150
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskListExternalizer.java63
1 files changed, 63 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskListExternalizer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskListExternalizer.java
new file mode 100644
index 000000000..febdc5cd2
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/ITaskListExternalizer.java
@@ -0,0 +1,63 @@
+/*******************************************************************************
+ * Copyright (c) 2004 - 2006 University Of British Columbia and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * University Of British Columbia - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.mylyn.tasks.core;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+/**
+ * Used to externalize things like tasks and bug reports along with the task
+ * list so that information about them can be persisted across invocations.
+ *
+ * @author Mik Kersten
+ * @author Ken Sueda
+ *
+ * TODO: consider merging tasks and categories
+ */
+public interface ITaskListExternalizer {
+
+ public abstract String getCategoryTagName();
+
+ public abstract String getTaskTagName();
+
+ public abstract String getQueryTagNameForElement(AbstractRepositoryQuery query);
+
+ /**
+ * @return the element that was created, null if failed
+ */
+ public abstract Element createCategoryElement(AbstractTaskContainer category, Document doc, Element parent);
+
+ public abstract boolean canCreateElementFor(AbstractTask task);
+
+ /**
+ * @return the element that was created, null if failed
+ */
+ public abstract Element createTaskElement(AbstractTask task, Document doc, Element parent);
+
+ public abstract boolean canReadCategory(Node node);
+
+ public abstract void readCategory(Node node, TaskList taskList) throws TaskExternalizationException;
+
+ public abstract boolean canReadTask(Node node);
+
+ public abstract AbstractTask createTask(String repositoryUrl, String taskId, String summary, Element element,
+ TaskList tlist, AbstractTaskContainer category, AbstractTask parent) throws TaskExternalizationException;
+
+ public abstract boolean canCreateElementFor(AbstractRepositoryQuery category);
+
+ public abstract Element createQueryElement(AbstractRepositoryQuery query, Document doc, Element parent);
+
+ public abstract boolean canReadQuery(Node node);
+
+ public abstract AbstractRepositoryQuery readQuery(Node node, TaskList tlist) throws TaskExternalizationException;
+}

Back to the top