public class SynonymDictionary extends DictionaryBase implements Iterable<String>
Represents a dictionary of synonyms.
Modifier and Type | Method and Description |
---|---|
void |
addRange(Iterable<String[]> synonyms)
Adds the specified collection of synonyms to this instance of the
SynonymDictionary . |
void |
clear()
Removes all words from a
SynonymDictionary object. |
void |
export(String fileName)
Deprecated.
|
void |
exportDictionary(String fileName)
Exports the synonym dictionary to a file with the specified name.
|
int |
getCount()
Gets the number of words contained in the
SynonymDictionary . |
void |
import_(String fileName)
Deprecated.
|
void |
importDictionary(String fileName)
Imports a synonym dictionary from the specified text file.
|
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.
|
public final int getCount()
Gets the number of words contained in the SynonymDictionary
.
public final void addRange(Iterable<String[]> synonyms)
Adds the specified collection of synonyms to this instance of the SynonymDictionary
.
synonyms
- The collection of synonyms to add to the dictionary.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.public final void clear()
Removes all words from a SynonymDictionary
object.
@Deprecated public final void export(String fileName)
Exports the synonym dictionary to a file with the specified name.
fileName
- The name of the text file to export to.public final void exportDictionary(String fileName)
Exports the synonym dictionary to a file with the specified name.
fileName
- The name of the text file to export to.@Deprecated public final void import_(String fileName)
Imports a synonym dictionary from the specified text file.
fileName
- The file to import from.public final void importDictionary(String fileName)
Imports a synonym dictionary from the specified text file.
fileName
- The file to import from.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.