Class MzTabValidator
- java.lang.Object
-
- de.isas.lipidomics.mztab2.validation.MzTabValidator
-
-
Constructor Summary
Constructors Constructor Description MzTabValidator(Validator<MzTab>... validator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ValidationMessage>
validate(MzTab mzTab)
validate.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.
-
-
-
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!
-
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.
-
-