public class RemoteRuleMatch extends Object
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getCategory()
The error's category.
|
Optional<String> |
getCategoryId()
The id of the error's category.
|
String |
getContext()
The error in its context.
|
int |
getContextOffset()
The character position of the error start inside the result of
getContext() . |
int |
getErrorLength()
The length of the error in characters.
|
int |
getErrorOffset()
The character position where the error starts.
|
Optional<String> |
getLocQualityIssueType() |
String |
getMessage()
A text describing the error to the user.
|
Optional<List<String>> |
getReplacements()
Potential corrections for the error.
|
String |
getRuleDescription()
Description of the rule.
|
String |
getRuleId()
Unique (per language) identifier for the error.
|
Optional<String> |
getRuleSubId()
Optional sub id (rule groups have a sub id for each rule).
|
Optional<String> |
getShortMessage()
Optional short message describing the error.
|
Optional<String> |
getUrl()
URL with a more detailed explanation of the error.
|
String |
toString() |
public String getRuleId()
public String getRuleDescription()
public Optional<String> getRuleSubId()
public String getMessage()
public Optional<String> getShortMessage()
public Optional<List<String>> getReplacements()
public String getContext()
getContextOffset()
and getErrorLength()
to get the exact position.public int getContextOffset()
getContext()
.public int getErrorOffset()
public int getErrorLength()