Package de.isas.mztab2.io.validators
Class SpectraRefValidator
- java.lang.Object
 - 
- de.isas.mztab2.io.validators.SpectraRefValidator
 
 
- 
- All Implemented Interfaces:
 FieldValidator<List<SpectraRef>>
public class SpectraRefValidator extends Object implements FieldValidator<List<SpectraRef>>
- Author:
 - nilshoffmann
 
 
- 
- 
Constructor Summary
Constructors Constructor Description SpectraRefValidator() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MZTabError>validateLine(int lineNumber, MZTabParserContext parserContext, IMZTabColumn column, String field, List<SpectraRef> refList)Validate the given object of type T, using the provided parser context and column to check the state of not yet completely parsed and constructed mzTab hierarchy.protected Optional<MZTabError>validatePattern(Pattern pattern, String reference, int lineNumber, IMZTabColumn column, String field, MsRun run) 
 - 
 
- 
- 
Constructor Detail
- 
SpectraRefValidator
public SpectraRefValidator()
 
 - 
 
- 
Method Detail
- 
validateLine
public List<MZTabError> validateLine(int lineNumber, MZTabParserContext parserContext, IMZTabColumn column, String field, List<SpectraRef> refList)
Description copied from interface:FieldValidatorValidate the given object of type T, using the provided parser context and column to check the state of not yet completely parsed and constructed mzTab hierarchy.- Specified by:
 validateLinein interfaceFieldValidator<List<SpectraRef>>- Parameters:
 lineNumber- the current line number being parsed. Maybe -1 to indicate no active lineNumber, e.g. for post-hoc refine validation.parserContext- the parser contextcolumn- the IMzTabColumn to use for type validation constraintsfield- the string representation of the fieldrefList- the object to validate- Returns:
 - a list of 
MZTabError, maybe empty. 
 
- 
validatePattern
protected Optional<MZTabError> validatePattern(Pattern pattern, String reference, int lineNumber, IMZTabColumn column, String field, MsRun run)
 
 - 
 
 -