public class HashMapDictionaryBuilder extends Object implements DictionaryBuilder
| Constructor and Description |
|---|
HashMapDictionaryBuilder()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWord(String word)
Adds a new word to the dictionary.
|
Dictionary |
getDictionary() |
String |
getMultiWordSeparator()
Returns the multi-word separator of the dictionary builder
|
void |
setDictionaryProperties(String language,
String typeName,
boolean caseNormalization,
boolean multiWordEntries,
String multiWordSeparator)
Set the dictionary properties, this method have to be called before words
can be added to the dictionary.
|
public HashMapDictionaryBuilder()
public String getMultiWordSeparator()
public void setDictionaryProperties(String language, String typeName, boolean caseNormalization, boolean multiWordEntries, String multiWordSeparator)
DictionaryBuildersetDictionaryProperties in interface DictionaryBuilderlanguage - dictionary languagetypeName - type name for the dictionary contentcaseNormalization - case normalization settingsmultiWordEntries - multi-word entries settingmultiWordSeparator - multi-word entry separatorpublic void addWord(String word)
DictionaryBuilderaddWord in interface DictionaryBuilderword - word that should be added.public Dictionary getDictionary()
getDictionary in interface DictionaryBuilderCopyright © 2006–2025 The Apache Software Foundation. All rights reserved.