public class DictionarySubstringRule 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 |
---|
DictionarySubstringRule()
Creates a new dictionary substring rule.
|
DictionarySubstringRule(Dictionary dict)
Creates a new dictionary substring 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 DictionarySubstringRule()
AbstractDictionaryRule.setDictionary(Dictionary)
method.public DictionarySubstringRule(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.