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 void
addWordResult(int startPos, int charCnt, WordCheckResult wordResult)
String
getLanguage()
String
getText()
com.day.cq.spellchecker.TextCheckResult.WordResult
getWordResult(int pos)
boolean
isHtml()
String
toJsonString()
String
toJsonString(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
-
-