Package adams.data.id

Class AbstractIDFilenameGenerator<T>

    • Field Detail

      • m_MakeFilename

        protected boolean m_MakeFilename
        whether to make the ID filename compliant.
      • m_FilenameReplaceChar

        protected String m_FilenameReplaceChar
        the filename replacement character.
    • Constructor Detail

      • AbstractIDFilenameGenerator

        public AbstractIDFilenameGenerator()
    • Method Detail

      • setMakeFilename

        public void setMakeFilename​(boolean value)
        Sets whether to make the ID filename compliant.
        Parameters:
        value - if true then all non-filename characters are removed
      • getMakeFilename

        public boolean getMakeFilename()
        Returns whether to make the ID filename compliant.
        Returns:
        true if all non-filename characters are removed
      • makeFilenameTipText

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

        public void setFilenameReplaceChar​(String value)
        Sets the replacement character for filenames.
        Parameters:
        value - the character or empty string
      • getFilenameReplaceChar

        public String getFilenameReplaceChar()
        Returns replacement character for filenames.
        Returns:
        the character or empty string
      • filenameReplaceCharTipText

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

        protected String postProcess​(String id)
        For post-processing the ID.

        The default implementation can make the ID filename-compliant.
        Overrides:
        postProcess in class AbstractIDGenerator<T>
        Parameters:
        id - the ID to post-process
        Returns:
        the post-processed id
        See Also:
        m_MakeFilename