edu.mssm.crover.webapps.dimlib.util
Class ExportXML

java.lang.Object
  |
  +--edu.mssm.crover.webapps.dimlib.util.ExportXML

public class ExportXML
extends java.lang.Object


Field Summary
protected  javax.jdo.PersistenceManager pm
           
 
Constructor Summary
ExportXML()
           
 
Method Summary
 void exportDatabase()
          Exports the whole database as one large file.
 java.lang.String exportMutant(MutantProtein mp)
          Returns as a String the XML file for a single mutant.
 java.lang.String exportProtein(WildTypeProtein wtp)
          Returns as a String the XML file for a single wildtype protein, with all associated information (all mutants and SNPs).
 java.lang.String exportSNP(SNP snp)
          Returns as a String the XML file for a single SNP.
 void exportXML()
          Exports the whole database as a series of individual files, one for every protein in the database.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pm

protected javax.jdo.PersistenceManager pm
Constructor Detail

ExportXML

public ExportXML()
Method Detail

exportXML

public void exportXML()
Exports the whole database as a series of individual files, one for every protein in the database.


exportDatabase

public void exportDatabase()
Exports the whole database as one large file. (not implemented yet - need to change dimlib.xsl file to allow multiple proteins, and therefore would have to change all import methods).


exportProtein

public java.lang.String exportProtein(WildTypeProtein wtp)
Returns as a String the XML file for a single wildtype protein, with all associated information (all mutants and SNPs).


exportSNP

public java.lang.String exportSNP(SNP snp)
Returns as a String the XML file for a single SNP.


exportMutant

public java.lang.String exportMutant(MutantProtein mp)
Returns as a String the XML file for a single mutant.


main

public static void main(java.lang.String[] args)


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.