public abstract class AbstractPatternRule extends Rule
| Constructor and Description |
|---|
AbstractPatternRule(String id,
String description,
Language language,
List<Element> elements,
boolean getUnified) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getId()
An ASCII-only string used to identify the rule in e.g. configuration files.
|
RuleMatch[] |
match(AnalyzedSentence text)
Check whether the given text matches this error rule, i.e. whether the text
contains this error.
|
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.
|
void |
setEndPositionCorrection(int endPositionCorrection) |
void |
setStartPositionCorrection(int startPositionCorrection) |
String |
toString() |
addRuleMatch, clearMatches, getCategory, getCorrectExamples, getIncorrectExamples, getMatches, getMatchesIndex, isDefaultOff, isInMatches, isInRemoved, isParagraphBackTrack, setAsDeleted, setCategory, setCorrectExamples, setDefaultOff, setIncorrectExamples, setParagraphBackTrack, supportsLanguagepublic final String toString()
toString in class Objectpublic String getDescription()
getDescription in class Rulepublic String getId()
Rulepublic RuleMatch[] match(AnalyzedSentence text) throws IOException
Rulepublic void reset()
Rulepublic final void setStartPositionCorrection(int startPositionCorrection)
public final void setEndPositionCorrection(int endPositionCorrection)
Copyright © 2005-2011 Daniel Naber