|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.issues.cache.XmlTaskWriter
public class XmlTaskWriter
Writes a single task to a stream.
Field Summary | |
---|---|
protected javax.xml.stream.XMLStreamWriter |
xmlWriter The writer to write the single tasks to. |
Constructor Summary | |
---|---|
XmlTaskWriter(javax.xml.stream.XMLStreamWriter xmlWriter) Default constructor. |
Method Summary | |
---|---|
void |
close() Closes this stream and releases any system resources associated with it. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final javax.xml.stream.XMLStreamWriter xmlWriter
Constructor Detail |
---|
public XmlTaskWriter(javax.xml.stream.XMLStreamWriter xmlWriter) throws NullPointerException
xmlWriter
- the writer to write the single tasks to.
NullPointerException
- if the
xmlWriter
is
null
.
Method Detail |
---|
public void writeTask(org.eclipse.mylyn.tasks.core.data.TaskData task) throws javax.xml.stream.XMLStreamException
writeTask
in interface
TaskWriter
task
- the task to write.
TaskWriter.writeTask(org.eclipse.mylyn.tasks.core.data.TaskData)
javax.xml.stream.XMLStreamException
public void writeAttribute(org.eclipse.mylyn.tasks.core.data.TaskAttribute attribute) throws javax.xml.stream.XMLStreamException
writeAttribute
in interface
TaskWriter
attribute
- the attribute to write.
TaskWriter.writeAttribute(org.eclipse.mylyn.tasks.core.data.TaskAttribute)
javax.xml.stream.XMLStreamException
public void writeAttributes(Map<String,org.eclipse.mylyn.tasks.core.data.TaskAttribute> attributes) throws javax.xml.stream.XMLStreamException
writeAttributes
in interface
TaskWriter
attributes
- the attributes to write.
TaskWriter.writeAttributes(java.util.Map)
javax.xml.stream.XMLStreamException
public void writeAttributeValues(org.eclipse.mylyn.tasks.core.data.TaskAttribute attribute) throws javax.xml.stream.XMLStreamException
writeAttributeValues
in interface
TaskWriter
attribute
- whose values are to be written.
TaskWriter.writeAttributeValues(org.eclipse.mylyn.tasks.core.data.TaskAttribute)
javax.xml.stream.XMLStreamException
public void writeMap(String gi, Map<String,String> map) throws javax.xml.stream.XMLStreamException
writeMap
in interface
TaskWriter
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
.
TaskWriter.writeMap(java.lang.String, java.util.Map)
javax.xml.stream.XMLStreamException
public void writeSimpleElement(String gi, String content) throws javax.xml.stream.XMLStreamException
writeSimpleElement
in interface
TaskWriter
gi
- the generic identifier of the XML element to be written.
content
- the content of the XML element to be written.
TaskWriter.writeSimpleElement(java.lang.String, java.lang.String)
javax.xml.stream.XMLStreamException
public void close()
The stream is closed quietly, logging any failure at error level.
close
in interface
Closeable
Closeable.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |