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