public class DoublePunctuationRule extends Rule
| Constructor and Description |
|---|
DoublePunctuationRule(ResourceBundle messages) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommaCharacter() |
protected String |
getCommaMessage() |
String |
getDescription()
A short description of the error this rule can detect, usually in the language of the text
that is checked.
|
protected String |
getDotMessage() |
String |
getId()
A string used to identify the rule in e.g. configuration files.
|
RuleMatch[] |
match(AnalyzedSentence sentence)
Check whether the given sentence matches this error rule, i.e. whether it
contains the error detected by this rule.
|
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, getIncorrectExamples, getLocQualityIssueType, getUrl, isDefaultOff, isDictionaryBasedSpellingRule, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setIncorrectExamples, setLocQualityIssueType, setUrl, supportsLanguage, toRuleMatchArray, useInOfficepublic DoublePunctuationRule(ResourceBundle messages)
public String getId()
RuleA-Z
and the underscore.public final String getDescription()
RulegetDescription in class Rulepublic String getCommaCharacter()
public final RuleMatch[] match(AnalyzedSentence sentence)
Ruleprotected String getDotMessage()
protected String getCommaMessage()