Class MissingReviewerValidator

  • All Implemented Interfaces:
    IMappingValidator

    public class MissingReviewerValidator
    extends Object
    implements IMappingValidator
    Checks that a mapping record that has a review_date or a reviewer_agreement also has either a reviewer_id or a reviewer_label.
    • Constructor Detail

      • MissingReviewerValidator

        public MissingReviewerValidator()
    • Method Detail

      • validate

        public ValidationError validate​(Mapping mapping)
        Description copied from interface: IMappingValidator
        Checks a mapping for a possible post-parsing error.
        Specified by:
        validate in interface IMappingValidator
        Parameters:
        mapping - The mapping to check.
        Returns:
        An error code, or null if the set passes the test represented by this object.