Class SEHLineParser
- java.lang.Object
-
- uk.ac.ebi.pride.jmztab2.utils.parser.MZTabLineParser
-
- uk.ac.ebi.pride.jmztab2.utils.parser.MZTabHeaderLineParser
-
- uk.ac.ebi.pride.jmztab2.utils.parser.SEHLineParser
-
public class SEHLineParser extends MZTabHeaderLineParser
Parse and validate Small Molecule Evidence header line into aMZTabColumnFactory.- Since:
- 11/09/17
- Author:
- nilshoffmann
-
-
Field Summary
-
Fields inherited from class uk.ac.ebi.pride.jmztab2.utils.parser.MZTabHeaderLineParser
factory, metadata
-
Fields inherited from class uk.ac.ebi.pride.jmztab2.utils.parser.MZTabLineParser
context, errorList, items, line, lineNumber, section
-
-
Constructor Summary
Constructors Constructor Description SEHLineParser(MZTabParserContext context, Metadata metadata)Constructor for SEHLineParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intparseColumns()This methods delegates to the subclasses the parsing of the columns.protected voidrefine()Some validate operation need to be done after the wholeMZTabColumnFactorycreated.-
Methods inherited from class uk.ac.ebi.pride.jmztab2.utils.parser.MZTabHeaderLineParser
checkAbundanceColumns, checkOptColumnName, fromIndexToOrder, getFactory, parse, parseIndex, refineOptionalColumn
-
-
-
-
Constructor Detail
-
SEHLineParser
public SEHLineParser(MZTabParserContext context, Metadata metadata)
Constructor for SEHLineParser.
- Parameters:
context- aMZTabParserContextobject.metadata- aMetadataobject.
-
-
Method Detail
-
parseColumns
protected int parseColumns() throws MZTabException
This methods delegates to the subclasses the parsing of the columns. All of the columns are defined inSmallMoleculeColumn,SmallMoleculeFeatureColumn, orSmallMoleculeEvidenceColumn.- Specified by:
parseColumnsin classMZTabHeaderLineParser- Returns:
- the next physical index of column available after the parsing.
- Throws:
MZTabException- if any structural or logical errors are encountered that prohibit further processing.
-
refine
protected void refine() throws MZTabException
Some validate operation need to be done after the wholeMZTabColumnFactorycreated. Thus, user can add them, and called at the end of theMZTabHeaderLineParser.parse(int, String, MZTabErrorList)method. The following optional columns are mandatory: 1. id_confidence_measure[1-n] NOTICE: this method will be called at end of parse() function.- Specified by:
refinein classMZTabHeaderLineParser- Throws:
MZTabException- if any structural or logical errors are encountered that prohibit further processing.- See Also:
MZTabHeaderLineParser.parse(int, String, MZTabErrorList),MZTabHeaderLineParser.parse(int, String, MZTabErrorList)
-
-