Class AbstractDataContainerFileWriter<T extends DataContainer>

    • Constructor Detail

      • AbstractDataContainerFileWriter

        public AbstractDataContainerFileWriter()
    • Method Detail

      • getDefaultWriter

        protected abstract AbstractDataContainerWriter<T> getDefaultWriter()
        Returns the default writer to use.
        Returns:
        the default 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 spectrums.
        Parameters:
        value - the directory
      • getOutputDir

        public PlaceholderDirectory getOutputDir()
        Returns the current output directory for the spectrums.
        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.
      • fileNameGenerationTipText

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

        protected String getDefaultSuppliedFileName()
        The default for the supplied file name.
        Returns:
        the default
      • suppliedFileNameTipText

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

        protected abstract Class getDataContainerClass()
        Returns the data container class in use.
        Returns:
        the container class
      • accepts

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

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

        protected String getDefaultExtension()
        Returns the default extension to use if none can be found (excl dot).
        Default implementation returns the default extension of the default writer.
      • doWrite

        protected String doWrite​(T[] conts,
                                 T cont)
        Performs the actual writing.
        Parameters:
        conts - the container array (if an array was received)
        cont - the container (if a single container was received)
        Returns:
        null if everything is fine, otherwise error message
      • doExecute

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