com.groupdocs.search.dictionaries

Class DictionaryBase

    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
      protected DictionaryBase(EventHub events, String filePath, boolean saveOnChange)
      Initializes a new instance of the DictionaryBase class.
    • Constructor Detail

      • DictionaryBase

        protected DictionaryBase(EventHub events,
                      String filePath,
                      boolean saveOnChange)

        Initializes a new instance of the DictionaryBase class.

        Parameters:
        events - The event hub.
        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.
      • 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.