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)
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(java.lang.String word)
DictionaryBuilder
addWord
in interface DictionaryBuilder
word
- word that should be added.public Dictionary getDictionary()
getDictionary
in interface DictionaryBuilder
Copyright © 2013. All Rights Reserved.