Package de.isas.mztab2.io.validators
Class DatabaseValidator
- java.lang.Object
-
- de.isas.mztab2.io.validators.DatabaseValidator
-
- All Implemented Interfaces:
MetadataValidator<de.isas.mztab2.model.Metadata>
public class DatabaseValidator extends Object implements MetadataValidator<de.isas.mztab2.model.Metadata>
Validates that the database section is present and correctly populated in metadata.- Author:
- nilshoffmann
-
-
Constructor Summary
Constructors Constructor Description DatabaseValidator()
-
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
-
DatabaseValidator
public DatabaseValidator()
-
-
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.
-
-