Class RemoteRuleMatch
java.lang.Object
org.languagetool.remote.RemoteRuleMatch
A potential error as returned by the HTTP API of LanguageTool.
- Since:
- 3.4
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRemoteRuleMatch(String ruleId, String ruleDescription, String msg, String context, int contextOffset, int offset, int errorLength) -
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.(package private) voidsetCategory(String category) (package private) voidsetCategoryId(String categoryId) (package private) voidsetLocQualityIssueType(String locQualityIssueType) (package private) voidsetReplacements(List<String> replacements) (package private) voidsetRuleSubId(String subId) (package private) voidsetShortMsg(String shortMsg) (package private) voidtoString()
-
Field Details
-
ruleId
-
ruleDescription
-
msg
-
context
-
contextOffset
private final int contextOffset -
offset
private final int offset -
errorLength
private final int errorLength -
subId
-
shortMsg
-
replacements
-
url
-
category
-
categoryId
-
locQualityIssueType
-
-
Constructor Details
-
RemoteRuleMatch
-
-
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
-
setRuleSubId
-
setShortMsg
-
setReplacements
-
setUrl
-
setCategory
-
setCategoryId
-
setLocQualityIssueType
-
toString
-