Package adams.core.io

Class SimpleFixedFilenameGenerator

    • Constructor Detail

      • SimpleFixedFilenameGenerator

        public SimpleFixedFilenameGenerator()
    • Method Detail

      • setName

        public void setName​(PlaceholderFile value)
        Sets the name to use.
        Parameters:
        value - the name
      • getName

        public PlaceholderFile getName()
        Returns the suffix in use.
        Returns:
        the suffix
      • nameTipText

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

        public boolean canHandleNullObject()
        Returns whether we actually need an object to generate the filename.
        Specified by:
        canHandleNullObject in class AbstractFilenameGenerator
        Returns:
        true if object required
      • doGenerate

        protected String doGenerate​(Object obj)
        Performs the actual generation of the filename.
        Specified by:
        doGenerate in class AbstractFilenameGenerator
        Parameters:
        obj - the object to generate the filename for
        Returns:
        the generated filename