com.groupdocs.search.legacy

Interfaces

Classes

Exceptions

com.groupdocs.search.legacy

Class SynonymDictionary

  • All Implemented Interfaces:
    Iterable<String>

    Deprecated. 
    This class is deprecated and will be available until January 2020 (version 20.1).

    @Deprecated
    public class SynonymDictionary
    extends DictionaryBase
    implements Iterable<String>

    Represents a dictionary of synonyms.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addRange(Iterable<String[]> synonyms)
      Deprecated. 
      Adds the specified collection of synonym groups to this instance of the SynonymDictionary.
      void addRange(String[][] synonyms)
      Deprecated. 
      Adds the specified collection of synonym groups to this instance of the SynonymDictionary.
      void clear()
      Deprecated. 
      Removes all words from a SynonymDictionary object.
      void exportDictionary(String fileName)
      Deprecated. 
      Exports the synonym dictionary to a file with the specified name.
      int getCount()
      Deprecated. 
      Gets the number of words contained in the SynonymDictionary.
      void importDictionary(String fileName)
      Deprecated. 
      Imports a synonym dictionary from the specified text file.
      com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
      Deprecated. 
      Returns an enumerator that iterates through a collection.
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<String> iterator()
      Deprecated. 
      Returns an enumerator that iterates through the collection.
    • Method Detail

      • getCount

        public final int getCount()
        Deprecated. 

        Gets the number of words contained in the SynonymDictionary.

      • addRange

        public final void addRange(Iterable<String[]> synonyms)
        Deprecated. 

        Adds the specified collection of synonym groups to this instance of the SynonymDictionary.

        Parameters:
        synonyms - The collection of synonym groups to add to the dictionary.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Thrown when synonyms is null.
        com.aspose.ms.System.ArgumentException - Thrown when number of synonyms in a group is less than 2.
      • addRange

        public final void addRange(String[][] synonyms)
        Deprecated. 

        Adds the specified collection of synonym groups to this instance of the SynonymDictionary.

        Parameters:
        synonyms - The collection of synonym groups to add to the dictionary.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Thrown when synonyms is null.
        com.aspose.ms.System.ArgumentException - Thrown when number of synonyms in a group is less than 2.
      • clear

        public final void clear()
        Deprecated. 

        Removes all words from a SynonymDictionary object.

      • exportDictionary

        public final void exportDictionary(String fileName)
        Deprecated. 

        Exports the synonym dictionary to a file with the specified name.

        Parameters:
        fileName - The name of the text file to export to.
      • importDictionary

        public final void importDictionary(String fileName)
        Deprecated. 

        Imports a synonym dictionary from the specified text file.

        Parameters:
        fileName - The file to import from.
      • iterator

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<String> iterator()
        Deprecated. 

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface Iterable<String>
        Returns:
        An enumerator that can be used to iterate through the collection.
      • iterator_Rename_Namesake

        public final com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
        Deprecated. 

        Returns an enumerator that iterates through a collection.

        Returns:
        An IEnumerator object that can be used to iterate through the collection.