Package de.isas.mztab2.io.validators
Class CvValidator
- java.lang.Object
-
- de.isas.mztab2.io.validators.CvValidator
-
- All Implemented Interfaces:
MetadataValidator<de.isas.mztab2.model.Metadata>
public class CvValidator extends Object implements MetadataValidator<de.isas.mztab2.model.Metadata>
Validates that the controlled vocabulary section is present in metadata and that it is correctly populated.- Author:
- nilshoffmann
-
-
Constructor Summary
Constructors Constructor Description CvValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<uk.ac.ebi.pride.jmztab2.utils.errors.MZTabError>
validateRefine(de.isas.mztab2.model.Metadata metadata, MZTabParserContext parserContext)
Validate the given object of type T, using the provided parser context to check state of not yet completely parsed and constructed mzTab hierarchy.
-
-
-
Constructor Detail
-
CvValidator
public CvValidator()
-
-
Method Detail
-
validateRefine
public List<uk.ac.ebi.pride.jmztab2.utils.errors.MZTabError> validateRefine(de.isas.mztab2.model.Metadata metadata, MZTabParserContext parserContext)
Description copied from interface:MetadataValidator
Validate the given object of type T, using the provided parser context to check state of not yet completely parsed and constructed mzTab hierarchy.- Specified by:
validateRefine
in interfaceMetadataValidator<de.isas.mztab2.model.Metadata>
- Parameters:
metadata
- the object to validateparserContext
- the parser context- Returns:
- a list of
MZTabError
, maybe empty.
-
-