Package com.jalios.jcms.spellchecker
Class XMLmindSpellChecker
java.lang.Object
com.jalios.jcms.spellchecker.XMLmindSpellChecker
- All Implemented Interfaces:
SpellChecker
Default SpellChecker Implementation of JCMS using XMLmind SpellChecker API.
You do not need to instanciate this spellchecker, instead, use the
SpellCheckerManager.- Since:
- jcms-6.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of available languages for spell-checking.spellCheck(String text, String lang) Spell-check the specified text in the specified language and return a list of SpellCheckResult.
-
Constructor Details
-
XMLmindSpellChecker
public XMLmindSpellChecker()
-
-
Method Details
-
getLanguageList
Returns a list of available languages for spell-checking.- Specified by:
getLanguageListin interfaceSpellChecker- Returns:
- a List of ISO-639 language code
-
spellCheck
Spell-check the specified text in the specified language and return a list of SpellCheckResult.- Specified by:
spellCheckin interfaceSpellChecker- Parameters:
text- the text to checklang- the language of the text (ISO-639 code), never null or empty- Returns:
- a List of SpellCheckResult
-