Last update: 2011-06-23

org.proteios.io.mzdata
Class MzDataExpDataBlock

java.lang.Object
  extended by org.proteios.io.mzdata.MzDataExpCommon
      extended by org.proteios.io.mzdata.MzDataExpCommonDc
          extended by org.proteios.io.mzdata.MzDataExpCommonAnnotation
              extended by org.proteios.io.mzdata.MzDataExpCommonPeakList
                  extended by org.proteios.io.mzdata.MzDataExpDataBlock

public class MzDataExpDataBlock
extends MzDataExpCommonPeakList

This class processes a "data" XML block in an mzData file. 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.

Version:
2.0
Author:
Olle
Last modified
$Date: 2006-10-25 14:40:28 +0200 (Wed, 25 Oct 2006) $

Field Summary
 
Fields inherited from class org.proteios.io.mzdata.MzDataExpCommonDc
anna, dc, factory
 
Fields inherited from class org.proteios.io.mzdata.MzDataExpCommon
log
 
Constructor Summary
MzDataExpDataBlock(SessionControl sc)
          Default constructor.
 
Method Summary
 String getEndian()
          Get the endian.
 String getPrecision()
          Get the precision.
 boolean isBigEndian()
          Get the bigEndian.
 boolean isDoublePrecision()
          Get the doublePrecision.
 void setEndian(String endian)
          Set the endian.
 void setPrecision(String precision)
          Set the precision.
 void write(XMLCrudeWriter xmlCrudeWriter, List<Double> peakData)
          Creates a data block.
 
Methods inherited from class org.proteios.io.mzdata.MzDataExpCommonPeakList
getPeakList, setPeakList
 
Methods inherited from class org.proteios.io.mzdata.MzDataExpCommonAnnotation
createAddedParamAnnotationType, createAnnotationType, createCvLookupAnnotationType, createCvParamAnnotationType, createUserParamAnnotationType, fetchAddedParamAnnotationType, fetchAnnotation, fetchCvLookupAnnotation, fetchCvLookupAnnotationList, fetchCvLookupAnnotationType, fetchCvParamAnnotation, fetchCvParamAnnotationList, fetchUserParamAnnotation, fetchUserParamAnnotationList, obtainAddedParamAnnotationType, obtainCvLookupAnnotationType, storeAnnotation, storeCvLookupAnnotation, storeCvParamAnnotation, storeUserParamAnnotation
 
Methods inherited from class org.proteios.io.mzdata.MzDataExpCommonDc
enableAnnotator, enableDbControl, enableDbControl, getDbControl, getSessionControl, setDbControl
 
Methods inherited from class org.proteios.io.mzdata.MzDataExpCommon
getBlockTagName, setBlockTagName, write, writeAttribute, writeEndTag, writeNamespace, writeSimpleElementPair, writeSimpleElementPair, writeSingleElementEnd, writeStartElement, writeStartElementEnd, writeStartListTag, writeStartTag, zeroPad, zeroPad, zeroPad
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MzDataExpDataBlock

public MzDataExpDataBlock(SessionControl sc)
Default constructor.

Method Detail

getPrecision

public String getPrecision()
Get the precision.

Returns:
precision String the precision

setPrecision

public void setPrecision(String precision)
Set the precision.

Parameters:
precision - String the precision to set.

getEndian

public String getEndian()
Get the endian.

Returns:
endian String the endian

setEndian

public void setEndian(String endian)
Set the endian.

Parameters:
endian - String the endian to set.

isDoublePrecision

public boolean isDoublePrecision()
Get the doublePrecision.

Returns:
doublePrecision boolean doublePrecision based on String precision

isBigEndian

public boolean isBigEndian()
Get the bigEndian.

Returns:
bigEndian boolean bigEndian based on String endian

write

public void write(XMLCrudeWriter xmlCrudeWriter,
                  List<Double> peakData)
           throws javax.xml.stream.XMLStreamException
Creates a data block.

Parameters:
xmlCrudeWriter - the XMLCrudeWriter instance to use.
peakData - List List of peak data values.
Throws:
javax.xml.stream.XMLStreamException - If there is an XML Stream related error

Last update: 2011-06-23