Class AbstractProcessor

    • Constructor Detail

      • AbstractProcessor

        public AbstractProcessor()
    • Method Detail

      • check

        protected void check​(SpreadSheet data,
                             MessageCollection errors)
        Hook method for performing checks.
        Parameters:
        data - the data to check
        errors - for storing errors
      • doProcess

        protected abstract SpreadSheet doProcess​(SpreadSheet data,
                                                 MessageCollection errors)
        Processes the data.
        Parameters:
        data - the input data
        errors - for storing errors
        Returns:
        the generated data, null in case of an error
      • process

        public SpreadSheet process​(SpreadSheet data,
                                   MessageCollection errors)
        Processes the data.
        Parameters:
        data - the input data
        errors - for storing errors
        Returns:
        the generated data, null in case of an error