public interface GenericChecker<T>
| Modifier and Type | Method and Description |
|---|---|
List<Mistake> |
check(T sentence)
Check the sentence for errors.
|
String |
getIdPrefix()
Each checker should have IDs with a fixed prefix so CheckerComposite can
route the ignore message to the correct checker.
|
int |
getPriority()
Priority of this checker.
|
Collection<RuleDefinition> |
getRulesDefinition()
Returns the descriptions of the rules implemented by this checker.
|
void |
ignore(String id)
The checker should ignore the rule with the given id.
|
void |
resetIgnored()
Reset all ignored rules
|
String getIdPrefix()
List<Mistake> check(T sentence)
sentence - the sentencevoid ignore(String id)
id - the rule id to be ignoredvoid resetIgnored()
int getPriority()
Collection<RuleDefinition> getRulesDefinition()
Copyright © 2012–2017 CoGrOO. All rights reserved.