Class MzTabValidatingWriter.WriteAndParseValidator

  • All Implemented Interfaces:
    de.isas.lipidomics.mztab2.validation.Validator<de.isas.mztab2.model.MzTab>
    Enclosing class:
    MzTabValidatingWriter

    public static class MzTabValidatingWriter.WriteAndParseValidator
    extends Object
    implements de.isas.lipidomics.mztab2.validation.Validator<de.isas.mztab2.model.MzTab>
    A default validator implemenation that first writes and then parses the created temporary file, performing the parser checks.
    • Constructor Detail

      • WriteAndParseValidator

        public WriteAndParseValidator​(OutputStream outputStream,
                                      uk.ac.ebi.pride.jmztab2.utils.errors.MZTabErrorType.Level level,
                                      int maxErrorCount)
        Create a new instance of this validator.
        Parameters:
        outputStream - the output stream to write to.
        level - the error level for validation.
        maxErrorCount - the maximum number of errors before an overflow exception while stop further processing.
    • Method Detail

      • validate

        public List<de.isas.mztab2.model.ValidationMessage> validate​(de.isas.mztab2.model.MzTab mzTab)
        Specified by:
        validate in interface de.isas.lipidomics.mztab2.validation.Validator<de.isas.mztab2.model.MzTab>