Package com.day.cq.spellchecker
Interface SpellCheckService
-
public interface SpellCheckServiceThis interface must be implemented by all services that provide means for spellchecking a single word or an entire text.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextCheckResultcheckText(java.lang.String text, java.lang.String language, boolean isHtml, java.lang.String[] dictionaryPaths)Spellchecks an entire text.WordCheckResultcheckWord(java.lang.String word, java.lang.String language, java.lang.String[] dictionaryPaths)Spellchecks a single word.
-
-
-
Method Detail
-
checkWord
WordCheckResult checkWord(java.lang.String word, java.lang.String language, java.lang.String[] dictionaryPaths) throws SpellCheckException
Spellchecks a single word.- Parameters:
word- The word to spellchecklanguage- Language of the worddictionaryPaths- Paths to dictionaries- Returns:
- The result of the spellchecking
- Throws:
SpellCheckException- in case of an error
-
checkText
TextCheckResult checkText(java.lang.String text, java.lang.String language, boolean isHtml, java.lang.String[] dictionaryPaths) throws SpellCheckException
Spellchecks an entire text.- Parameters:
text- The text to spellchecklanguage- Language of the textisHtml- True if the text to check is in HTML formatdictionaryPaths- Paths to dictionaries- Returns:
- The result of the spellchecking
- Throws:
SpellCheckException- in case of an error
-
-