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