|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GenericChecker<T>
Interface to implement checkers. Checkers should be added to CheckerComposite.
Method Summary | |
---|---|
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 |
Method Detail |
---|
String getIdPrefix()
List<Mistake> check(T sentence)
sentence
- the sentence
void ignore(String id)
id
- the rule id to be ignoredvoid resetIgnored()
int getPriority()
Collection<RuleDefinition> getRulesDefinition()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |