de.smartics.maven.issues.cache
Interface TaskWriter

Package class diagram package TaskWriter
All Known Implementing Classes:
XmlTaskWriter

public interface TaskWriter

Interface to write a task.

Author:
Robert Reiner

Method Summary
 void writeAttribute(org.eclipse.mylyn.tasks.core.data.TaskAttribute attribute)
          Writes the attribute.
 void writeAttributes(Map<String,org.eclipse.mylyn.tasks.core.data.TaskAttribute> attributes)
          Writes the set of attributes.
 void writeAttributeValues(org.eclipse.mylyn.tasks.core.data.TaskAttribute attribute)
          Writes the attribute values.
 void writeMap(String gi, Map<String,String> map)
          Writes the key and values of the map.
 void writeSimpleElement(String gi, String content)
          Writes a simple element containing no attributes and only text content.
 void writeTask(org.eclipse.mylyn.tasks.core.data.TaskData task)
          Writes the given task to the stream referenced by this instance.
 

Method Detail

writeTask

void writeTask(org.eclipse.mylyn.tasks.core.data.TaskData task)
               throws Exception
Writes the given task to the stream referenced by this instance.

Parameters:
task - the task to write.
Throws:
Exception - if the information cannot be written.

writeAttribute

void writeAttribute(org.eclipse.mylyn.tasks.core.data.TaskAttribute attribute)
                    throws Exception
Writes the attribute.

Parameters:
attribute - the attribute to write.
Throws:
Exception - if the information cannot be written.

writeAttributes

void writeAttributes(Map<String,org.eclipse.mylyn.tasks.core.data.TaskAttribute> attributes)
                     throws Exception
Writes the set of attributes.

Parameters:
attributes - the attributes to write.
Throws:
Exception - if the information cannot be written.

writeAttributeValues

void writeAttributeValues(org.eclipse.mylyn.tasks.core.data.TaskAttribute attribute)
                          throws Exception
Writes the attribute values.

Parameters:
attribute - whose values are to be written.
Throws:
Exception - if the information cannot be written.

writeMap

void writeMap(String gi,
              Map<String,String> map)
              throws Exception
Writes the key and values of the map. The key is the generic identifier (GI), the value the content of the XML element.

Parameters:
gi - the generic identifier of the element within the key-value pairs are written.
map - the information to be written inside the element specified by gi.
Throws:
Exception - if the information cannot be written.

writeSimpleElement

void writeSimpleElement(String gi,
                        String content)
                        throws Exception
Writes a simple element containing no attributes and only text content.

Parameters:
gi - the generic identifier of the XML element to be written.
content - the content of the XML element to be written.
Throws:
Exception - if the information cannot be written.


Copyright © 2008-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.