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
    • Constructor Detail

      • MzTabValidator

        public MzTabValidator​(Validator<MzTab>... validator)
    • Method Detail

      • validate

        public List<ValidationMessage> validate​(MzTab mzTab)
        Description copied from interface: Validator

        validate.

        Please make sure that all exceptions are caught within the validate method!
        Specified by:
        validate in interface Validator<MzTab>
        Parameters:
        mzTab - the object to validate.
        Returns:
        a List object.
      • validate

        public static List<ValidationMessage> validate​(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.