Class MzTabValidator

  • All Implemented Interfaces:
    Validator<MzTab>

    public class MzTabValidator
    extends Object
    implements Validator<MzTab>
    Delegating validator implementation that forwards validation to the provided validator implementations.
    Author:
    nilshoffmann
    • Method Detail

      • validate

        public static List<ValidationMessagevalidate​(MzTab mzTab,
                                                       ValidationMessage.MessageTypeEnum validationLevel,
                                                       Validator<MzTab>... validators)
        Validate the given mzTab object, filtering messages that are of a lower level than the given one. Thus, for validationLevel=ERROR, only ERROR messages will be returned, for WARN, ERROR and WARN messages will be returned. For INFO, INFO, WARN and ERROR messages will be returned.
        Parameters:
        mzTab - the mzTab object to validate.
        validationLevel - the validation level, used as a message filter.
        validators - the validators to apply in sequence to the mzTab object.
        Returns:
        the filtered list of validation messages according to the giben validationLevel.