Class SMLLineParser
- java.lang.Object
-
- uk.ac.ebi.pride.jmztab2.utils.parser.MZTabLineParser
-
- uk.ac.ebi.pride.jmztab2.utils.parser.MZTabDataLineParser<de.isas.mztab2.model.SmallMoleculeSummary>
-
- uk.ac.ebi.pride.jmztab2.utils.parser.SMLLineParser
-
public class SMLLineParser extends MZTabDataLineParser<de.isas.mztab2.model.SmallMoleculeSummary>
SMLLineParser class.
- Since:
- 10/02/13
- Author:
- qingwei, nilshoffmann
-
-
Field Summary
-
Fields inherited from class uk.ac.ebi.pride.jmztab2.utils.parser.MZTabDataLineParser
exchangeMapping, factory, mapping, metadata, positionMapping
-
Fields inherited from class uk.ac.ebi.pride.jmztab2.utils.parser.MZTabLineParser
context, errorList, items, line, lineNumber, section
-
-
Constructor Summary
Constructors Constructor Description SMLLineParser(MZTabParserContext context, MZTabColumnFactory factory, PositionMapping positionMapping, de.isas.mztab2.model.Metadata metadata, uk.ac.ebi.pride.jmztab2.utils.errors.MZTabErrorList errorList)
Constructor for SMLLineParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
checkData()
Check and translate the columns into mzTab elements.protected void
checkItemNumbers(uk.ac.ebi.pride.jmztab2.utils.errors.MZTabErrorList errorList, int lineNumber, List<?> reference, de.isas.mztab2.model.SmallMoleculeSummary.Properties referenceProperty, List<?> toCheck, de.isas.mztab2.model.SmallMoleculeSummary.Properties toCheckProperty)
protected void
checkRegexMatches(uk.ac.ebi.pride.jmztab2.utils.errors.MZTabErrorList errorList, int lineNumber, de.isas.mztab2.model.SmallMoleculeSummary.Properties elementProperty, String regularExpression, List<String> elements)
de.isas.mztab2.model.SmallMoleculeSummary
getRecord()
getRecord.-
Methods inherited from class uk.ac.ebi.pride.jmztab2.utils.parser.MZTabDataLineParser
checkAmbiguityMembers, checkBestSearchEngineScore, checkCalcMassToCharge, checkCharge, checkChemicalFormula, checkData, checkDatabase, checkDatabaseVersion, checkDescription, checkDouble, checkDouble, checkDoubleList, checkEnd, checkExpMassToCharge, checkGOTerms, checkIdentifier, checkInchiKey, checkInteger, checkInteger, checkIntegerList, checkIntegerList, checkMassToCharge, checkMZBoolean, checkNumPeptidesDistinct, checkNumPeptidesUnique, checkNumPSMs, checkParameter, checkParamList, checkPost, checkPre, checkProteinCoverage, checkPSMID, checkRetentionTime, checkRetentionTimeWindow, checkSearchEngine, checkSearchEngineScore, checkSequence, checkSmiles, checkSpecies, checkSpectraRef, checkSpectraRef, checkStart, checkString, checkString, checkStringList, checkTaxid, checkUnique, checkURI, loadBestSearchEngineScoreId, loadSearchEngineScoreId, parse
-
-
-
-
Constructor Detail
-
SMLLineParser
public SMLLineParser(MZTabParserContext context, MZTabColumnFactory factory, PositionMapping positionMapping, de.isas.mztab2.model.Metadata metadata, uk.ac.ebi.pride.jmztab2.utils.errors.MZTabErrorList errorList)
Constructor for SMLLineParser.
- Parameters:
context
- aMZTabParserContext
object.factory
- aMZTabColumnFactory
object.positionMapping
- aPositionMapping
object.metadata
- aMetadata
object.errorList
- aMZTabErrorList
object.
-
-
Method Detail
-
checkData
protected int checkData()
Check and translate the columns into mzTab elements.- Specified by:
checkData
in classMZTabDataLineParser<de.isas.mztab2.model.SmallMoleculeSummary>
- Returns:
- a int.
-
checkRegexMatches
protected void checkRegexMatches(uk.ac.ebi.pride.jmztab2.utils.errors.MZTabErrorList errorList, int lineNumber, de.isas.mztab2.model.SmallMoleculeSummary.Properties elementProperty, String regularExpression, List<String> elements)
-
checkItemNumbers
protected void checkItemNumbers(uk.ac.ebi.pride.jmztab2.utils.errors.MZTabErrorList errorList, int lineNumber, List<?> reference, de.isas.mztab2.model.SmallMoleculeSummary.Properties referenceProperty, List<?> toCheck, de.isas.mztab2.model.SmallMoleculeSummary.Properties toCheckProperty) throws uk.ac.ebi.pride.jmztab2.utils.errors.MZTabErrorOverflowException
- Throws:
uk.ac.ebi.pride.jmztab2.utils.errors.MZTabErrorOverflowException
-
getRecord
public de.isas.mztab2.model.SmallMoleculeSummary getRecord()
getRecord.
- Specified by:
getRecord
in classMZTabDataLineParser<de.isas.mztab2.model.SmallMoleculeSummary>
- Returns:
- a
SmallMoleculeSummary
object.
-
-