Class RemoteRuleMatch
java.lang.Object
org.languagetool.remote.RemoteRuleMatch
A potential error as returned by the HTTP API of LanguageTool.
- Since:
- 3.4
-
Method Summary
Modifier and TypeMethodDescriptionThe error's category.The id of the error's category.The error in its context.intThe character position of the error start inside the result ofgetContext().intThe length of the error in characters.intThe character position where the error starts.A text describing the error to the user.Potential corrections for the error.Description of the rule.Unique (per language) identifier for the error.Optional sub id (rule groups have a sub id for each rule).Optional short message describing the error.getUrl()URL with a more detailed explanation of the error.toString()
-
Method Details
-
getRuleId
Unique (per language) identifier for the error. -
getRuleDescription
Description of the rule. -
getRuleSubId
-
getMessage
A text describing the error to the user. -
getShortMessage
-
getReplacements
-
getContext
The error in its context. SeegetContextOffset()andgetErrorLength()to get the exact position. -
getContextOffset
public int getContextOffset()The character position of the error start inside the result ofgetContext(). -
getErrorOffset
public int getErrorOffset()The character position where the error starts. -
getErrorLength
public int getErrorLength()The length of the error in characters. -
getUrl
-
getCategory
-
getCategoryId
-
getLocQualityIssueType
-
toString
-