public class HashMapDictionaryBuilder extends java.lang.Object implements DictionaryBuilder
| Constructor and Description |
|---|
HashMapDictionaryBuilder()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWord(java.lang.String word)
Adds a new word to the dictionary.
|
Dictionary |
getDictionary() |
java.lang.String |
getMultiWordSeparator()
Returns the multi-word separator of the dictionary builder
|
void |
setDictionaryProperties(java.lang.String language,
java.lang.String typeName,
boolean caseNormalization,
boolean multiWordEntries,
java.lang.String multiWordSeparator)
Set the dictionary properties, this method have to be called before words
can be added to the dictionary.
|
public HashMapDictionaryBuilder()
public java.lang.String getMultiWordSeparator()
public void setDictionaryProperties(java.lang.String language,
java.lang.String typeName,
boolean caseNormalization,
boolean multiWordEntries,
java.lang.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(java.lang.String word)
DictionaryBuilderaddWord in interface DictionaryBuilderword - word that should be added.public Dictionary getDictionary()
getDictionary in interface DictionaryBuilderCopyright © 2013. All Rights Reserved.