} else {
peakRTRange.extendRange(retentionTime);
peakIntensityRange.extendRange(intensity);
}
if (mz > 0.0) {
mzPeaks[i] = new SimpleDataPoint(mz, intensity);
if (peakMZRange == null)
peakMZRange = new Range(mz);
else
peakMZRange.extendRange(mz);
}
}
PeakStatus status = PeakStatus.valueOf(peakStatus);
SimpleChromatographicPeak peak = new SimpleChromatographicPeak(
dataFile, mass, rt, height, area, scanNumbers, mzPeaks,
status, representativeScan, fragmentScan, peakRTRange,
peakMZRange, peakIntensityRange);
peak.setCharge(currentPeakCharge);
if (currentIsotopes.size() > 0) {
SimpleIsotopePattern newPattern = new SimpleIsotopePattern(
currentIsotopes.toArray(new DataPoint[0]),
currentIsotopePatternStatus,
currentIsotopePatternDescription);
peak.setIsotopePattern(newPattern);
currentIsotopes.clear();
}
buildingRow.addPeak(dataFile, peak);
}
// <IDENTITY_PROPERTY>
if (qName.equals(PeakListElementName_2_0.IDPROPERTY.getElementName())) {
identityProperties.put(identityPropertyName, getTextOfElement());
}
// <PEAK_IDENTITY>
if (qName
.equals(PeakListElementName_2_0.PEAK_IDENTITY.getElementName())) {
String content = getTextOfElement();
if (identityProperties.get(PeakIdentity.PROPERTY_NAME) == null)
identityProperties.put(PeakIdentity.PROPERTY_NAME, content);
SimplePeakIdentity identity = new SimplePeakIdentity(
identityProperties);
buildingRow.addPeakIdentity(identity, preferred);
}
// <ROW>
if (qName.equals(PeakListElementName_2_0.ROW.getElementName())) {
buildingPeakList.addRow(buildingRow);
buildingRow = null;
parsedRows++;
}
// <ISOTOPE>
if (qName.equals(PeakListElementName_2_0.ISOTOPE.getElementName())) {
String text = getTextOfElement();
String items[] = text.split(":");
double mz = Double.valueOf(items[0]);
double intensity = Double.valueOf(items[1]);
DataPoint isotope = new SimpleDataPoint(mz, intensity);
currentIsotopes.add(isotope);
}
if (qName.equals(PeakListElementName_2_0.METHOD_NAME.getElementName())) {
String appliedMethod = getTextOfElement();