com.groupdocs.search.dictionaries

Class DictionaryBase

    • Constructor Detail

      • DictionaryBase

        protected DictionaryBase(String filePath,
                                 boolean saveOnChange)

        Initializes a new instance of the DictionaryBase class.

        Parameters:
        filePath - The file name.
        saveOnChange - The save on change flag.
    • Method Detail

      • getFilePath

        protected final String getFilePath()

        Gets the dictionary file path.

        Returns:
        The dictionary file path.
      • notifyChanged

        protected final void notifyChanged()

        Notifies about the dictionary changed.

      • exportDictionary

        public final void exportDictionary(String filePath)

        Exports the dictionary to a file with the specified name.

        Parameters:
        filePath - The file to export to.
      • importDictionary

        public final void importDictionary(String filePath)

        Imports a dictionary from the specified file.

        Parameters:
        filePath - The file to import from.
      • getStandardFileName

        protected abstract String getStandardFileName(String indexFolder)
      • loadInternalStatic

        protected static void loadInternalStatic(DictionaryBase dictionary)
      • setFilePath

        public void setFilePath(String filePath,
                                boolean saveOnChange)
      • export

        protected abstract void export(String filePath)

        Exports the dictionary to a file with the specified name.

        Parameters:
        filePath - The file to export to.
      • import_

        protected abstract void import_(String filePath)

        Imports a dictionary from the specified file.

        Parameters:
        filePath - The file to import from.
      • save

        protected abstract void save()

        Saves the dictionary data to disk.

      • load

        protected abstract void load()

        Loads the dictionary data from disk.

      • loadDefault

        protected abstract void loadDefault()

        Loads the default dictionary data.

      • merge

        protected abstract void merge(DictionaryBase dictionaryBase)

        Merges the specified dictionary into the current dictionary.

        Parameters:
        dictionaryBase - The dictionary to merge into.