public abstract class AbstractSimpleReplaceRule2 extends Rule
/ro/replace.txt.AbstractSimpleReplaceRule| Constructor and Description |
|---|
AbstractSimpleReplaceRule2(ResourceBundle messages,
Language language) |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getDescription()
A short description of the error this rule can detect, usually in the language of the text
that is checked.
|
abstract String |
getFileName() |
abstract String |
getId()
A string used to identify the rule in e.g. configuration files.
|
abstract Locale |
getLocale()
locale used on case-conversion
|
abstract String |
getShort() |
abstract String |
getSuggestion() |
abstract String |
getSuggestionsSeparator() |
List<Map<String,String>> |
getWrongWords() |
boolean |
isCaseSensitive()
use case-insensitive matching.
|
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 AbstractSimpleReplaceRule2(ResourceBundle messages, Language language) throws IOException
IOExceptionpublic abstract String getFileName()
public abstract String getId()
RuleA-Z
and the underscore.public abstract String getDescription()
RulegetDescription in class Rulepublic abstract String getShort()
public abstract String getSuggestion()
public abstract String getSuggestionsSeparator()
public abstract Locale getLocale()
public boolean isCaseSensitive()
public List<Map<String,String>> getWrongWords()
public RuleMatch[] match(AnalyzedSentence sentence)
Rule