com.groupdocs.search

Class PasswordDictionary

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void add(String fileName, String password)
      Adds an element with the provided key and value to the dictionary.
      void clear()
      Clear all elements in dictionary.
      boolean containsKey(String fileName)
      Determines whether the dictionary contains an element with the specified key.
      String get_Item(String fileName)
      Gets or sets password for the file.
      int getCount()
      Gets the number of elements contained in the dictionary.
      com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
      Returns an enumerator that iterates through a collection.
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<String> iterator()
      Returns an enumerator that iterates through the collection.
      boolean remove(String fileName)
      Removes the element with the specified key from the dictionary.
      void set_Item(String fileName, String value)
      Gets or sets password for the file.
    • Method Detail

      • getCount

        public final int getCount()

        Gets the number of elements contained in the dictionary.

        Returns:
        The number of elements contained in the dictionary. Value: The count of elements.
      • get_Item

        public final String get_Item(String fileName)

        Gets or sets password for the file.

        Parameters:
        fileName - The file name.
        Returns:
        The password.
      • set_Item

        public final void set_Item(String fileName,
                    String value)

        Gets or sets password for the file.

        Parameters:
        fileName - The file name.
      • clear

        public final void clear()

        Clear all elements in dictionary.

      • containsKey

        public final boolean containsKey(String fileName)

        Determines whether the dictionary contains an element with the specified key.

        Parameters:
        fileName - The file name of document.
        Returns:
        true if the dictionary contains an element with the key; otherwise, false.
      • add

        public final void add(String fileName,
               String password)

        Adds an element with the provided key and value to the dictionary.

        Parameters:
        fileName - The file name of document.
        password - The document password.
      • remove

        public final boolean remove(String fileName)

        Removes the element with the specified key from the dictionary.

        Parameters:
        fileName - The file name of document.
        Returns:
        true if the element is successfully removed; otherwise, false. This method also returns false if fileName was not found in the original dictionary.
      • iterator

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

        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()

        Returns an enumerator that iterates through a collection.

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