Package com.day.cq.spellchecker
Class TextCheckResult
- java.lang.Object
-
- com.day.cq.spellchecker.TextCheckResult
-
public class TextCheckResult extends Object
This class represents the spellchecking results when checking against an entire text.
-
-
Constructor Summary
Constructors Constructor Description TextCheckResult(String text, boolean isHtml, String language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWordResult(int startPos, int charCnt, WordCheckResult wordResult)StringgetLanguage()StringgetText()com.day.cq.spellchecker.TextCheckResult.WordResultgetWordResult(int pos)booleanisHtml()StringtoJsonString()StringtoJsonString(boolean sparse)
-
-
-
Method Detail
-
addWordResult
public void addWordResult(int startPos, int charCnt, WordCheckResult wordResult)
-
getWordResult
public com.day.cq.spellchecker.TextCheckResult.WordResult getWordResult(int pos)
-
getText
public String getText()
-
isHtml
public boolean isHtml()
-
getLanguage
public String getLanguage()
-
toJsonString
public String toJsonString() throws SpellCheckException
- Throws:
SpellCheckException
-
toJsonString
public String toJsonString(boolean sparse) throws SpellCheckException
- Throws:
SpellCheckException
-
-