Class COMLineParser
- java.lang.Object
 - 
- uk.ac.ebi.pride.jmztab2.utils.parser.MZTabLineParser
 - 
- uk.ac.ebi.pride.jmztab2.utils.parser.COMLineParser
 
 
 
- 
public class COMLineParser extends MZTabLineParser
Comment line parser. Comment lines can be placed anywhere in an mzTab file. These lines must start with the three-letter code COM and are ignored by most parsers. Empty lines can also occur anywhere in an mzTab file and are ignored.- Since:
 - 10/02/13
 - Author:
 - qingwei
 - See Also:
 MZTabLineParser
 
- 
- 
Field Summary
- 
Fields inherited from class uk.ac.ebi.pride.jmztab2.utils.parser.MZTabLineParser
context, errorList, items, line, lineNumber, section 
 - 
 
- 
Constructor Summary
Constructors Constructor Description COMLineParser(MZTabParserContext context)Constructor for COMLineParser. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentgetComment()getComment.voidparse(int lineNumber, String line, MZTabErrorList errorList)We assume that user before call this method, have parse the raw line is not empty line and start with section prefix. 
 - 
 
- 
- 
Constructor Detail
- 
COMLineParser
public COMLineParser(MZTabParserContext context)
Constructor for COMLineParser.
- Parameters:
 context- aMZTabParserContextobject.
 
 - 
 
- 
Method Detail
- 
parse
public void parse(int lineNumber, String line, MZTabErrorList errorList) throws MZTabException
We assume that user before call this method, have parse the raw line is not empty line and start with section prefix.- Overrides:
 parsein classMZTabLineParser- Parameters:
 lineNumber- a int.line- aStringobject.errorList- aMZTabErrorListobject.- Throws:
 MZTabException- if any.
 
- 
getComment
public Comment getComment()
getComment.
- Returns:
 - a 
Commentobject. 
 
 - 
 
 -