public class PasswordDictionary extends DictionaryBase implements Iterable<String>
Represents dictionary of passwords.
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.
|
public final int getCount()
Gets the number of elements contained in the dictionary.
public final String get_Item(String fileName)
Gets or sets password for the file.
fileName
- The file name.public final void set_Item(String fileName, String value)
Gets or sets password for the file.
fileName
- The file name.public final void clear()
Clear all elements in dictionary.
public final boolean containsKey(String fileName)
Determines whether the dictionary contains an element with the specified key.
fileName
- The file name of document.true
if the dictionary contains an element with the key; otherwise, false
.public final void add(String fileName, String password)
Adds an element with the provided key and value to the dictionary.
fileName
- The file name of document.password
- The document password.public final boolean remove(String fileName)
Removes the element with the specified key from the dictionary.
fileName
- The file name of document.true
if the element is successfully removed; otherwise, false
.
This method also returns false
if fileName
was not found in the original dictionary.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<String> iterator()
Returns an enumerator that iterates through the collection.
public final com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
Returns an enumerator that iterates through a collection.
IEnumerator
object that can be used to iterate through the collection.Copyright © 2018. All rights reserved.