| java.lang.Object org.columba.mail.spellcheck.cswilly.Validator
Validator | public class Validator (Code) | | A validator of a spell check results
After a spell check engine runs, its results must be validated (normally by
a user). The
Validator class provides this service.
|
replaceWord | protected String replaceWord(String originalLine, String originalWord, int originalIndex, String replacementWord)(Code) | | Helper method to replace the original word with the correction in the line
|
validate | public String validate(String line, List results)(Code) | | Validate a line of words that have the results of a spell
check.
Parameters: line - String with a line of words that are to be corrected Parameters: results - List of Result of a spell check new line with all corrected words validated |
validate | public String validate(Result result)(Code) | | Validates a single correction
Parameters: result - A Result of spell checking one word validated correction (this is the replacement word). nullis returned if the operation is cancelled. The replacement wordmaybe the same or different from the original word inresult . |
|
|