Package org.languagetool
Class UserConfig
java.lang.Object
org.languagetool.UserConfig
User-specific configuration. So far, this contains a list of words and a settings map.
- Since:
- 4.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private final boolean
private final LinguServices
private final int
private long
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionUserConfig
(List<String> userSpecificSpellerWords) UserConfig
(List<String> userSpecificSpellerWords, Map<String, Integer> ruleValues, int maxSpellingSuggestions) UserConfig
(List<String> userSpecificSpellerWords, Map<String, Integer> ruleValues, int maxSpellingSuggestions, String userDictName, LinguServices linguServices) UserConfig
(List<String> userSpecificSpellerWords, Map<String, Integer> ruleValues, int maxSpellingSuggestions, String userDictName, LinguServices linguServices, boolean filterDictionaryMatches) UserConfig
(Map<String, Integer> ruleValues) UserConfig
(Map<String, Integer> ruleValues, LinguServices linguServices) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
int
getConfigValueByID
(String ruleID) int
int
hashCode()
boolean
void
insertConfigValues
(Map<String, Integer> ruleValues) void
void
setTextSessionId
(Long textSessionId)
-
Field Details
-
userSpecificSpellerWords
-
maxSpellingSuggestions
private final int maxSpellingSuggestions -
userDictName
-
configurableRuleValues
-
linguServices
-
filterDictionaryMatches
private final boolean filterDictionaryMatches -
textSessionId
private long textSessionId -
abTest
-
-
Constructor Details
-
UserConfig
public UserConfig() -
UserConfig
-
UserConfig
-
UserConfig
-
UserConfig
-
UserConfig
-
UserConfig
-
UserConfig
-
-
Method Details
-
getAcceptedWords
-
getMaxSpellingSuggestions
public int getMaxSpellingSuggestions() -
getConfigValues
-
insertConfigValues
-
getConfigValueByID
-
hasLinguServices
public boolean hasLinguServices() -
getLinguServices
-
getUserDictName
- Since:
- 4.4
-
equals
-
hashCode
public int hashCode() -
setTextSessionId
-
getTextSessionId
-
getAbTest
-
setAbTest
-
filterDictionaryMatches
public boolean filterDictionaryMatches()
-