Interface Validator

    • Method Detail

      • setDocument

        void setDocument​(InputStream document)
        Set document to validate.
        Parameters:
        document - document to validate
      • validate

        List<ValidationError> validate()
        Run validation.
        Returns:
        a list of validation errors
      • getErrors

        List<ValidationError> getErrors()
        Get the list of validation errors.
        Returns:
        a list of validation errors.
      • clear

        void clear()
        Clear the list of validation errors.
      • getName

        String getName()
        Returns:
        the name of the validator