|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.io.mzdata.MzDataExporter
public class MzDataExporter
This class supports export of mzData files from Proteios. An mzData file contains information on a mass spectrometry experiment. Given a Proteios peakListSet, MzDataExporter fetches stored data related to this peakListSet and stores it in an mzData file. The mzData file is then validated against the XML Schema Definition file mzdata.xsd.
| Constructor Summary | |
|---|---|
MzDataExporter()
Default constructor. |
|
MzDataExporter(SessionControl sc)
Constructor that takes a SessionControl as parameter. |
|
MzDataExporter(String xsdFilePath)
Constructor that takes an xml schema definition as parameter. |
|
MzDataExporter(String xsdFilePath,
SessionControl sc)
Constructor that takes an xml schema definition and a SessionControl as parameter. |
|
| Method Summary | |
|---|---|
void |
enableDbControl()
Make sure that DbControl is running. |
void |
enableDbControl(BasicItem item)
Make sure that DbControl is running, and that the item is attached to it. |
void |
export(int id,
String xmlFilePath)
Exports mzData in Proteios to an mzData XML file. |
void |
export(PeakListSet peakListSetSource,
File coreFile)
Exports mzData in Proteios to mzData XML data in a core file. |
void |
export(PeakListSet peakListSetSource,
OutputStream oStream)
Exports mzData in Proteios to an OutputStream. |
void |
export(PeakListSet peakListSetSource,
String xmlFilePath)
Exports mzData in Proteios to an mzData XML file. |
ProgressReporter |
getProgressReporter()
Get the ProgressReporter. |
String |
getXMLFilePath()
Get mzData XML file path. |
String |
getXsdFilePath()
Get XSD schema file to validate against. |
void |
processMzDataObjectGraph(PeakListSet peakListSet)
Processes the mzData information stored in the PeakListSet by navigating the object graph, and write the data to an XML output stream. |
void |
setProgressReporter(ProgressReporter progress)
Set the ProgressReporter. |
void |
setXMLFilePath(String xmlFilePath)
Set mzData XML file path. |
void |
setXsdFilePath(String xsdFilePath)
Set XSD schema file to validate against. |
boolean |
valid(String xmlFilePath)
Validates mzData file against current mzData XSD file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MzDataExporter()
public MzDataExporter(SessionControl sc)
sc - The SessionControl to use.public MzDataExporter(String xsdFilePath)
xsdFilePath - The XML Schema Definition to use.
public MzDataExporter(String xsdFilePath,
SessionControl sc)
xsdFilePath - The XML Schema Definition to use.sc - The SessionControl to use.| Method Detail |
|---|
public String getXsdFilePath()
public void setXsdFilePath(String xsdFilePath)
xsdFilePath - String with path for XSD schema file.public String getXMLFilePath()
public void setXMLFilePath(String xmlFilePath)
xmlFilePath - String with path for mzData XML file.public ProgressReporter getProgressReporter()
public void setProgressReporter(ProgressReporter progress)
progress - The ProgressReporter object to set.
public boolean valid(String xmlFilePath)
throws javax.xml.stream.XMLStreamException,
SAXException
xmlFilePath - String with path of XML file to validate.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
SAXException
public void export(int id,
String xmlFilePath)
throws javax.xml.stream.XMLStreamException,
SAXException
id - int id of the PeakListSet to be exported to an mzData file.xmlFilePath - String with path for exported mzData XML file.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
SAXException
public void export(PeakListSet peakListSetSource,
String xmlFilePath)
throws javax.xml.stream.XMLStreamException,
SAXException
peakListSetSource - PeakListSet for mzData to be exported to mzData
XML file.xmlFilePath - String with path for exported mzData XML file.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
SAXException
public void export(PeakListSet peakListSetSource,
File coreFile)
throws javax.xml.stream.XMLStreamException,
SAXException
peakListSetSource - PeakListSet for mzData to be exported to mzData
XML data.coreFile - org.proteios.core.File Core file for exported mzData XML
data.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
SAXException
public void export(PeakListSet peakListSetSource,
OutputStream oStream)
throws javax.xml.stream.XMLStreamException,
SAXException
peakListSetSource - PeakListSet for mzData to be exported to mzData
XML file.oStream - OutputSteam The OutputStream to write exported mzData XML
data to.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
SAXException
public void processMzDataObjectGraph(PeakListSet peakListSet)
throws javax.xml.stream.XMLStreamException
peakListSet - PeakListSet peakListSet used
javax.xml.stream.XMLStreamException - If there is an XML Stream related errorpublic void enableDbControl()
public void enableDbControl(BasicItem item)
item - BasicItem item to reattach to DbController
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||