Class AbstractReportFileWriter<T extends Report>

    • Constructor Detail

      • AbstractReportFileWriter

        public AbstractReportFileWriter()
    • Method Detail

      • getDefaultWriter

        protected abstract AbstractReportWriter<T> getDefaultWriter()
        Returns the default writer.
        Returns:
        the writer
      • setWriter

        public void setWriter​(AbstractReportWriter value)
        Sets the writer to use.
        Parameters:
        value - the writer
      • getWriter

        public AbstractReportWriter getWriter()
        Returns the writer in use.
        Returns:
        the writer
      • writerTipText

        public String writerTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setOutputDir

        public void setOutputDir​(PlaceholderDirectory value)
        Sets the output directory for the reports.
        Parameters:
        value - the directory
      • getOutputDir

        public PlaceholderDirectory getOutputDir()
        Returns the current output directory for the reports.
        Returns:
        the directory
      • outputDirTipText

        public String outputDirTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultFilenameGenerator

        protected AbstractFilenameGenerator getDefaultFilenameGenerator()
        Returns the default generator
        Returns:
        the generator
      • setFilenameGenerator

        public void setFilenameGenerator​(AbstractFilenameGenerator value)
        Sets the filename generator to use.
        Parameters:
        value - the generator
      • getFilenameGenerator

        public AbstractFilenameGenerator getFilenameGenerator()
        Returns the writer in use.
        Returns:
        the generator
      • filenameGeneratorTipText

        public String filenameGeneratorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • accepts

        public abstract Class[] accepts()
        Returns the class that the consumer accepts.
        Returns:
        the type of report
      • generates

        public Class[] generates()
        Returns the class of objects that it generates.
        Returns:
        java.lang.String.class
      • extractReport

        protected T extractReport​(Token token)
        Extracts the report from the token.
        Parameters:
        token - the token to get the report from
        Returns:
        the report
      • extractReports

        protected T[] extractReports​(Token token)
        Extracts the reports from the token.
        Parameters:
        token - the token to get the reports from
        Returns:
        the reports
      • doExecute

        protected String doExecute()
        Executes the flow item.
        Specified by:
        doExecute in class AbstractActor
        Returns:
        null if everything is fine, otherwise error message