de.danielnaber.languagetool.rules.uk
Class PunctuationCheckRule

Object
  extended by Rule
      extended by AbstractPunctuationCheckRule
          extended by PunctuationCheckRule

public class PunctuationCheckRule
extends AbstractPunctuationCheckRule

A rule that matches "..", "::", "-," but not "...", "!..", "?!!", ",-" etc TODO: spaces seem to be special, extract from regexp?

Author:
Andriy Rysin

Constructor Summary
PunctuationCheckRule(ResourceBundle messages)
           
 
Method Summary
 void reset()
          If a rule keeps it state over more than the check of one sentence, this must be implemented so the internal state it reset.
 
Methods inherited from class AbstractPunctuationCheckRule
getDescription, getId, match
 
Methods inherited from class Rule
addRuleMatch, clearMatches, getCategory, getCorrectExamples, getIncorrectExamples, getMatches, getMatchesIndex, isDefaultOff, isInMatches, isInRemoved, isParagraphBackTrack, setAsDeleted, setCategory, setCorrectExamples, setDefaultOff, setIncorrectExamples, setParagraphBackTrack, supportsLanguage
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PunctuationCheckRule

public PunctuationCheckRule(ResourceBundle messages)
Method Detail

reset

public void reset()
Description copied from class: Rule
If a rule keeps it state over more than the check of one sentence, this must be implemented so the internal state it reset. It will be called before a new text is going to be checked.

Overrides:
reset in class AbstractPunctuationCheckRule


Copyright © 2005-2007 Daniel Naber