|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectno.priv.garshol.duke.cleaners.AbstractRuleBasedCleaner
public abstract class AbstractRuleBasedCleaner
Helper class for building regular-expression based cleaners.
| Constructor Summary | |
|---|---|
AbstractRuleBasedCleaner()
Initializes an empty cleaner. |
|
| Method Summary | |
|---|---|
void |
add(String regex,
String replacement)
Adds a rule replacing all substrings matching the regular expression with the replacement string. |
void |
add(String regex,
String replacement,
int groupno)
Adds a rule replacing all substrings matching the specified group within the regular expression with the replacement string. |
String |
clean(String value)
Returns a cleaned value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRuleBasedCleaner()
| Method Detail |
|---|
public String clean(String value)
Cleaner
clean in interface Cleaner
public void add(String regex,
String replacement)
public void add(String regex,
String replacement,
int groupno)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||