com.jalios.jcms.spellchecker
Class XMLmindSpellChecker

java.lang.Object
  extended by com.jalios.jcms.spellchecker.XMLmindSpellChecker
All Implemented Interfaces:
SpellChecker

public class XMLmindSpellChecker
extends Object
implements 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
Version:
$Revision: 26103 $

Field Summary
static String REVISION
           
 
Constructor Summary
XMLmindSpellChecker()
           
 
Method Summary
 List<String> getLanguageList()
          Returns a list of available languages for spell-checking.
 List<SpellCheckResult> spellCheck(String text, String lang)
          Spell-check the specified text in the specified language and return a list of SpellCheckResult.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

XMLmindSpellChecker

public XMLmindSpellChecker()
Method Detail

getLanguageList

public List<String> getLanguageList()
Returns a list of available languages for spell-checking.

Specified by:
getLanguageList in interface SpellChecker
Returns:
a List of ISO-639 language code

spellCheck

public List<SpellCheckResult> spellCheck(String text,
                                         String lang)
Spell-check the specified text in the specified language and return a list of SpellCheckResult.

Specified by:
spellCheck in interface SpellChecker
Parameters:
text - the text to check
lang - the language of the text (ISO-639 code), never null or empty
Returns:
a List of SpellCheckResult


Copyright © 2001-2010 Jalios SA. All Rights Reserved.