|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectRule
AbstractCompoundRule
public abstract class AbstractCompoundRule
Checks that compounds (if in the list) are not written as separate words.
| Constructor Summary | |
|---|---|
AbstractCompoundRule(ResourceBundle messages,
String fileName,
String withHyphenMessage,
String withoutHyphenMessage,
String withOrWithoutHyphenMessage)
|
|
| Method Summary | |
|---|---|
abstract String |
getDescription()
|
abstract String |
getId()
An ASCII-only string used to identify the rule in e.g. configuration files. |
int |
getMaxUnHyphenatedWordCount()
|
boolean |
isHyphenIgnored()
|
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 |
setHyphenIgnored(boolean ignoreHyphen)
|
void |
setMaxUnHyphenatedWordCount(int maxNoHyphensSize)
|
void |
setShort(String shortDescription)
|
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCompoundRule(ResourceBundle messages,
String fileName,
String withHyphenMessage,
String withoutHyphenMessage,
String withOrWithoutHyphenMessage)
throws IOException
IOException| Method Detail |
|---|
public abstract String getId()
Rule
getId in class Rulepublic abstract String getDescription()
getDescription in class Rulepublic void setShort(String shortDescription)
public boolean isHyphenIgnored()
public void setHyphenIgnored(boolean ignoreHyphen)
public int getMaxUnHyphenatedWordCount()
public void setMaxUnHyphenatedWordCount(int maxNoHyphensSize)
public RuleMatch[] match(AnalyzedSentence text)
Rule
match in class Ruletext - a pre-analyzed sentence
public void reset()
Rule
reset in class Rule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||