public class DictionaryRule extends AbstractDictionaryRule
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_CODE
Error code for matching dictionary word.
|
static String |
ERROR_CODE_REVERSED
Error code for matching reversed dictionary word.
|
Constructor and Description |
---|
DictionaryRule()
Creates a new dictionary rule without supplying a dictionary.
|
DictionaryRule(Dictionary dict)
Creates a new dictionary rule.
|
Modifier and Type | Method and Description |
---|---|
protected String |
doWordSearch(String text)
Searches the dictionary with the supplied text.
|
protected String |
getErrorCode(boolean backwards)
Returns the error code for this rule.
|
createRuleResultDetailParameters, getDictionary, isMatchBackwards, setDictionary, setMatchBackwards, toString, validate
public static final String ERROR_CODE
public static final String ERROR_CODE_REVERSED
public DictionaryRule()
AbstractDictionaryRule.setDictionary(Dictionary)
.public DictionaryRule(Dictionary dict)
dict
- to use for searchingprotected String doWordSearch(String text)
AbstractDictionaryRule
doWordSearch
in class AbstractDictionaryRule
text
- to search dictionary withprotected String getErrorCode(boolean backwards)
AbstractDictionaryRule
getErrorCode
in class AbstractDictionaryRule
backwards
- whether to return the error code for a backwards matchCopyright © 2003-2024 Virginia Tech. All Rights Reserved.