com.groupdocs.search

Class Alphabet

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addRange(Iterable<Character> characters)
      Deprecated. 
      void clear()
      Removes all characters from a Alphabet object.
      boolean contains(char character)
      Determines whether a Alphabet object contains the specified character as valid or blended.
      void exportDictionary(String fileName)
      Exports the character dictionary to a file with the specified name.
      byte get_Item(char character)
      Gets a type of a character.
      int getCount()
      Gets the number of characters contained in the Alphabet.
      void importDictionary(String fileName)
      Imports the character 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)
      Deprecated. 
      void setRange(char[] characters, byte type)
      Sets the type for each character of the specified collection in this instance of the Alphabet.
    • Method Detail

      • get_Item

        public final byte get_Item(char character)

        Gets a type of a character.

        Parameters:
        character - The character to get a type.
        Returns:
        A type of the character.
      • getCount

        public final int getCount()

        Gets the number of characters contained in the Alphabet.

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

        @Deprecated
        public final void addRange(Iterable<Character> characters)
        Deprecated. 

        Adds the specified collection of valid characters to this instance of the Alphabet. Note that existing blended characters are not changed.

        Parameters:
        characters - The collection of characters to add to the dictionary.
      • removeRange

        @Deprecated
        public final void removeRange(Iterable<Character> characters)
        Deprecated. 

        Removes the specified collection of valid characters from this instance of the Alphabet. Note that existing blended characters are not changed.

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

        public final void setRange(char[] characters,
                    byte type)

        Sets the type for each character of the specified collection in this instance of the Alphabet.

        Parameters:
        characters - The collection of characters to set the type.
        type - The character type.
      • contains

        public final boolean contains(char character)

        Determines whether a Alphabet object contains the specified character as valid or blended.

        Parameters:
        character - The character to locate in the Alphabet object.
        Returns:
        true if the Alphabet object contains the specified character as valid or blended; otherwise, false.
      • clear

        public final void clear()

        Removes all characters from a Alphabet object.

      • importDictionary

        public final void importDictionary(String fileName)

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

        Parameters:
        fileName - The name of the text file to import from.
      • 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.