Class AbstractMultiSpreadSheetOperation<O>

    • Constructor Detail

      • AbstractMultiSpreadSheetOperation

        public AbstractMultiSpreadSheetOperation()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • minNumSheetsRequired

        public abstract int minNumSheetsRequired()
        Returns the minimum number of sheets that are required for the operation.
        Returns:
        the number of sheets that are required, <= 0 means no lower limit
      • maxNumSheetsRequired

        public abstract int maxNumSheetsRequired()
        Returns the maximum number of sheets that are required for the operation.
        Returns:
        the number of sheets that are required, <= 0 means no upper limit
      • generates

        public abstract Class generates()
        The type of data that is generated.
        Returns:
        the class
      • check

        protected void check​(SpreadSheet[] sheets)
        Checks the sheets.

        Default implementation only ensures that sheets are present.
        Parameters:
        sheets - the sheets to check
      • doProcess

        protected abstract O doProcess​(SpreadSheet[] sheets,
                                       MessageCollection errors)
        Performs the actual processing of the sheets.
        Parameters:
        sheets - the containers to process
        errors - for collecting errors
        Returns:
        the generated data
      • process

        public O process​(SpreadSheet[] sheets,
                         MessageCollection errors)
        Processes the containers.
        Parameters:
        sheets - the containers to process
        errors - for collecting errors
        Returns:
        the generated data