|
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.MzDataImpCommon
org.proteios.io.mzdata.MzDataImpCommonDc
org.proteios.io.mzdata.MzDataImpCommonAnnotation
org.proteios.io.mzdata.MzDataImpCommonPeakList
org.proteios.io.mzdata.MzDataImpSpectrumBlock
public class MzDataImpSpectrumBlock
This class processes a "spectrum" XML block in an mzData file. An mzData file
contains information on a mass spectrometry experiment. The mzData file is
first vaildated against the XML Schema Definition file mzdata.xsd. If the
file is valid, its content is parsed and selected information stored in
Proteios. The mzData file is parsed using cursor-based XML stream parsing.
The StAX (Stream API for XML) parser finds start and stop (end) tags, which
are then processed. Element attributes are located in the start tag, and
elements of simple types are stored directly after the start tag is read. For
more complex elements, values of attributes and sub-elements are collected in
temporary variables, until the end tag is reached, and the colelcted contents
are stored. Example: XML tag
| Field Summary |
|---|
| Fields inherited from class org.proteios.io.mzdata.MzDataImpCommonDc |
|---|
anna, dc, factory |
| Fields inherited from class org.proteios.io.mzdata.MzDataImpCommon |
|---|
log |
| Constructor Summary | |
|---|---|
MzDataImpSpectrumBlock(SessionControl sc)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
blockEnd(javax.xml.stream.XMLStreamReader parser)
Processes end of XML block processed by this class. |
void |
blockStart(javax.xml.stream.XMLStreamReader parser)
Processes start of XML block processed by this class. |
List<Peak> |
peakArrayListItem(PeakList peakList,
List<Double> peakMassData,
List<Double> peakIntensityData)
Creates a PeakArrayList. |
Peak |
peakItem(int peakIndex,
double massToChargeRatio,
double intensity)
Creates a peak item. |
void |
processInternalStartElement(javax.xml.stream.XMLStreamReader parser)
Processes an Internal StartElement event. |
void |
storePeakListAnnotations(PeakList peakList)
Stores variable values as annotations for peakList. |
| Methods inherited from class org.proteios.io.mzdata.MzDataImpCommonPeakList |
|---|
getPeakList, parse, setPeakList |
| Methods inherited from class org.proteios.io.mzdata.MzDataImpCommonAnnotation |
|---|
fetchCvLookupAnnotation, fetchCvLookupAnnotationList, fetchCvParamAnnotation, fetchCvParamAnnotationList, fetchUserParamAnnotation, fetchUserParamAnnotationList, storeAnnotation, storeCvLookupAnnotation, storeCvParamAnnotation, storeUserParamAnnotation |
| Methods inherited from class org.proteios.io.mzdata.MzDataImpCommonDc |
|---|
enableDbControl, enableDbControl, getDbControl, getSessionControl, setDbControl |
| Methods inherited from class org.proteios.io.mzdata.MzDataImpCommon |
|---|
getBlockTagName, getTempStrBuf, parse, processCData, processCharacters, processInternalEndElement, setBlockTagName, setTempStrBuf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MzDataImpSpectrumBlock(SessionControl sc)
sc - | Method Detail |
|---|
public void blockStart(javax.xml.stream.XMLStreamReader parser)
throws javax.xml.stream.XMLStreamException
blockStart in class MzDataImpCommonparser - XMLStreamReader instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void processInternalStartElement(javax.xml.stream.XMLStreamReader parser)
throws javax.xml.stream.XMLStreamException
processInternalStartElement in class MzDataImpCommonparser - XMLStreamReader instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public void blockEnd(javax.xml.stream.XMLStreamReader parser)
throws javax.xml.stream.XMLStreamException
blockEnd in class MzDataImpCommonparser - XMLStreamReader instance.
javax.xml.stream.XMLStreamException - If there is an XML Stream related error
public List<Peak> peakArrayListItem(PeakList peakList,
List<Double> peakMassData,
List<Double> peakIntensityData)
peakList - PeakList peakList for Peak ownershippeakMassData - ListpeakIntensityData - List
public Peak peakItem(int peakIndex,
double massToChargeRatio,
double intensity)
peakIndex - int index for peak, starting with 0massToChargeRatio - double massToChargeRatio for peakintensity - double intensity for peak
public void storePeakListAnnotations(PeakList peakList)
peakList - PeakList peakList
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||