public class StructureXmlWriter extends StructureWriter
StructureReader| Constructor and Description |
|---|
StructureXmlWriter()
Instantiates a new Structure format writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear any stored settings and data
|
void |
close()
Close this writer.
|
boolean |
isDataWritten()
Return whether the data elements should be written.
|
boolean |
isTemplateWritten()
Return whether the templates should be written out by this
StructureWriter
|
void |
setDataWritten(boolean writtenFlag)
Set the dataWritten flag.
|
void |
setTemplateWritten(boolean templateWritten)
Set the templateWritten flag.
|
void |
writeData(java.util.Collection<DataRecord> dataset)
Write the collection of data.
|
void |
writeDataStructureSpec(DataStructureSpec spec)
Write the data structure specification element to the XML file.
|
void |
writeGraph(Graph<DataRecord,DataRecord> graph)
Write graph data
|
void |
writeGraphSpec(GraphSpec spec)
Write the graph specification element to the XML file.
|
void |
writeGrid(Grid<DataRecord> grid)
Write Grid data
|
void |
writeTree(Tree<DataRecord> tree)
Write tree data
|
getContentType, getDestination, getWriter, setDestination, setWriterpublic StructureXmlWriter()
public void clear()
clear in class StructureWriterpublic void close()
public boolean isDataWritten()
public boolean isTemplateWritten()
public void setDataWritten(boolean writtenFlag)
writtenFlag - the dataWritten flagpublic void setTemplateWritten(boolean templateWritten)
templateWritten - the templateWritten flagpublic void writeData(java.util.Collection<DataRecord> dataset)
dataset - the data collectionpublic void writeDataStructureSpec(DataStructureSpec spec)
spec - the data structure specification element.public void writeGraph(Graph<DataRecord,DataRecord> graph)
writeGraph in class StructureWritergraph - the graphpublic void writeGraphSpec(GraphSpec spec)
spec - the data structure specification element.public void writeGrid(Grid<DataRecord> grid)
writeGrid in class StructureWritergrid - the gridpublic void writeTree(Tree<DataRecord> tree)
writeTree in class StructureWritertree - the tree data