@Experimental public abstract class TextLevelRule extends Rule
| Constructor and Description |
|---|
TextLevelRule(ResourceBundle messages)
Called by rules that require a translation of their messages.
|
| Modifier and Type | Method and Description |
|---|---|
RuleMatch[] |
match(AnalyzedSentence sentence)
Check whether the given sentence matches this error rule, i.e. whether it
contains the error detected by this rule.
|
RuleMatch[] |
match(List<AnalyzedSentence> sentence) |
void |
reset()
If a rule keeps its state over more than the check of one sentence, this
must be implemented so the internal state is reset.
|
addExamplePair, getCategory, getCorrectExamples, getDescription, getId, getIncorrectExamples, getLocQualityIssueType, getUrl, isDefaultOff, isDictionaryBasedSpellingRule, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setIncorrectExamples, setLocQualityIssueType, setUrl, supportsLanguage, toRuleMatchArray, useInOfficepublic TextLevelRule(ResourceBundle messages)
public RuleMatch[] match(AnalyzedSentence sentence) throws IOException
Rulematch in class Rulesentence - a pre-analyzed sentenceRuleMatch objectsIOExceptionpublic RuleMatch[] match(List<AnalyzedSentence> sentence) throws IOException
IOException