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)
DictionaryBuilder
setDictionaryProperties
in interface DictionaryBuilder
language
- dictionary languagetypeName
- type name for the dictionary contentcaseNormalization
- case normalization settingsmultiWordEntries
- multi-word entries settingmultiWordSeparator
- multi-word entry separatorpublic void addWord(String word)
DictionaryBuilder
addWord
in interface DictionaryBuilder
word
- word that should be added.public Dictionary getDictionary()
getDictionary
in interface DictionaryBuilder
Copyright © 2016. All rights reserved.