uk.ac.ebi.intact.application.dataConversion
Interface DataBuilder

All Known Implementing Classes:
PsiDataBuilder

public interface DataBuilder

Interface defining the operations required to generate flat files. Implementing classes thus generate flat files of differing formats depending upon their implementation details.

Version:
$Id: DataBuilder.java,v 1.3 2004/01/31 11:36:10 skerrien Exp $
Author:
Chris Lewington

Method Summary
 void processExperiments(java.util.Collection experiments)
          Builds some file data for a specific Intact object.
 void writeData(java.lang.String fileName, org.w3c.dom.Document docToWrite)
          This method dumps the data created to the specified file destination.
 

Method Detail

processExperiments

public void processExperiments(java.util.Collection experiments)
                        throws ElementNotParseableException
Builds some file data for a specific Intact object. Most applicable for XML style formats.

Parameters:
experiments - for which file data is required
ElementNotParseableException

writeData

public void writeData(java.lang.String fileName,
                      org.w3c.dom.Document docToWrite)
               throws DataConversionException
This method dumps the data created to the specified file destination.

Parameters:
fileName - The name of the file to write to.
docToWrite - an XML document to write - if the data held by the builder is not XML or its own Document should be written, this parameter should be set to null.
Throws:
DataConversionException - thrown if there was a problem generating the file.


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk