com.groupdocs.search

Class CharacterReplacementDictionary

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addRange(Iterable<com.aspose.ms.System.Collections.Generic.KeyValuePair<Character,Character>> characterReplacements)
      Adds the specified collection of character replacements to this instance of the CharacterReplacementDictionary.
      void clear()
      Removes all character replacements from a CharacterReplacementDictionary object.
      boolean contains(char character)
      Determines whether a CharacterReplacementDictionary object contains the specified character replacements.
      void export(String fileName)
      Deprecated. 
      void exportDictionary(String fileName)
      Exports the character dictionary to a file with the specified name.
      int getCount()
      Gets the number of characters contained in the CharacterReplacementDictionary.
      char getReplacement(char character)
      Gets a replacement for the specified character.
      void import_(String fileName)
      Deprecated. 
      void importDictionary(String fileName)
      Imports the character replacement collection from a file with the specified name.
      com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
      Returns an enumerator that iterates through a collection.
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Character> iterator()
      Returns an enumerator that iterates through the collection.
      void removeRange(Iterable<Character> characters)
      Removes the specified collection of character replacements from this instance of the CharacterReplacementDictionary.
    • Method Detail

      • getCount

        public final int getCount()

        Gets the number of characters contained in the CharacterReplacementDictionary.

        Value: The number of characters in the dictionary.
      • addRange

        public final void addRange(Iterable<com.aspose.ms.System.Collections.Generic.KeyValuePair<Character,Character>> characterReplacements)

        Adds the specified collection of character replacements to this instance of the CharacterReplacementDictionary.

        Parameters:
        characterReplacements - The collection of character replacements to add to the dictionary.
      • removeRange

        public final void removeRange(Iterable<Character> characters)

        Removes the specified collection of character replacements from this instance of the CharacterReplacementDictionary.

        Parameters:
        characters - The collection of characters to remove.
      • contains

        public final boolean contains(char character)

        Determines whether a CharacterReplacementDictionary object contains the specified character replacements.

        Parameters:
        character - The character to locate in the CharacterReplacementDictionary object.
        Returns:
        true if the CharacterReplacementDictionary object contains the specified character; otherwise, false.
      • getReplacement

        public final char getReplacement(char character)

        Gets a replacement for the specified character.

        Parameters:
        character - The character to get a replacement for.
        Returns:
        The replacement for the specified character.
      • clear

        public final void clear()

        Removes all character replacements from a CharacterReplacementDictionary object.

      • import_

        @Deprecated
        public final void import_(String fileName)
        Deprecated. 

        Imports the character replacement collection from a file with the specified name.

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

        public final void importDictionary(String fileName)

        Imports the character replacement collection from a file with the specified name.

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

        @Deprecated
        public final void export(String fileName)
        Deprecated. 

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

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

        public final void exportDictionary(String fileName)

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

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

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

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface Iterable<Character>
        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()

        Returns an enumerator that iterates through a collection.

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