org.eclipse.mylar.internal.tasks.core
Class TaskRepositoriesExternalizer

java.lang.Object
  extended by org.eclipse.mylar.internal.tasks.core.TaskRepositoriesExternalizer

public class TaskRepositoriesExternalizer
extends java.lang.Object

Adapted from MylarContextExternalizer

Author:
Rob Elves

Field Summary
static java.lang.String ATTRIBUTE_VERSION
           
static java.lang.String ELEMENT_TASK_REPOSITORIES
           
static java.lang.String ELEMENT_TASK_REPOSITORY
           
private  SaxRepositoriesWriter writer
           
 
Constructor Summary
TaskRepositoriesExternalizer()
           
 
Method Summary
 java.util.Set<TaskRepository> readRepositoriesFromXML(java.io.File file)
           
 void writeRepositoriesToXML(java.util.Collection<TaskRepository> repositories, java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

private SaxRepositoriesWriter writer

ELEMENT_TASK_REPOSITORIES

public static final java.lang.String ELEMENT_TASK_REPOSITORIES
See Also:
Constant Field Values

ELEMENT_TASK_REPOSITORY

public static final java.lang.String ELEMENT_TASK_REPOSITORY
See Also:
Constant Field Values

ATTRIBUTE_VERSION

public static final java.lang.String ATTRIBUTE_VERSION
See Also:
Constant Field Values
Constructor Detail

TaskRepositoriesExternalizer

public TaskRepositoriesExternalizer()
Method Detail

writeRepositoriesToXML

public void writeRepositoriesToXML(java.util.Collection<TaskRepository> repositories,
                                   java.io.File file)

readRepositoriesFromXML

public java.util.Set<TaskRepository> readRepositoriesFromXML(java.io.File file)