Package org.pathvisio.libgpml.model
Interface GPMLFormatWriter
- All Superinterfaces:
GPMLFormatVersion
- All Known Implementing Classes:
GPML2013aWriter
,GPML2021Writer
public interface GPMLFormatWriter extends GPMLFormatVersion
Interface for GPML writing.
- Author:
- unknown
-
Method Summary
Modifier and Type Method Description org.jdom2.Document
createJdom(PathwayModel pathwayModel)
Creates a Jdom document from pathway model.void
writeToXml(PathwayModel pathwayModel, java.io.File file, boolean validate)
Write pathway model to file.void
writeToXml(PathwayModel pathwayModel, java.io.OutputStream out, boolean validate)
Writes pathway model to outputstream.Methods inherited from interface org.pathvisio.libgpml.model.GPMLFormatVersion
getGpmlNamespace, getSchemaFile, validateDocument
-
Method Details
-
createJdom
Creates a Jdom document from pathway model.- Parameters:
pathwayModel
- the pathway model.- Returns:
- Throws:
ConverterException
-
writeToXml
void writeToXml(PathwayModel pathwayModel, java.io.File file, boolean validate) throws ConverterExceptionWrite pathway model to file.- Parameters:
pathwayModel
- the pathway model.file
- the file to write to.validate
- if true, validate.- Throws:
ConverterException
-
writeToXml
void writeToXml(PathwayModel pathwayModel, java.io.OutputStream out, boolean validate) throws ConverterExceptionWrites pathway model to outputstream.- Parameters:
pathwayModel
- the pathway model.out
- the output stream.validate
- if true, validate.- Throws:
ConverterException
-