public class Censor extends RegexpReplacer
RegexpReplacer.PatternWatcherChunkedTransformer.Status| Modifier and Type | Field and Description |
|---|---|
protected static Collection<Entry<Pattern,String>> |
forbidden |
regexps, replaceInAENTIRE, LINES, ONLY_REPLACE_FIRST_MATCH, ONLY_USE_FIRST_MATCHING_PATTERN, onlyFirstMatch, onlyFirstPattern, WORDS, XMLTEXT, XMLTEXT_WORDSto| Constructor and Description |
|---|
Censor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getConfigFile()
This can be overridden if the implementation must use its own configuration file.
|
protected Collection<Entry<Pattern,String>> |
getPatterns()
This on default gives the regexps configured for the base-class (a static member).
|
protected void |
readDefaultPatterns(Collection<Entry<Pattern,String>> patterns)
Reads defaults translation patterns into the given collection patterns.
|
String |
toString() |
addPatterns, base, main, readPatterns, replaceconfigure, getEncoding, newStatus, replace, replaceWord, transform, transformEntire, transformers, transformLines, transformWords, transformXmlText, transformXmlTextWordstransform, transform, transformBack, transformBack, transformBackclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittransform, transform, transformBack, transformBack, transformBackprotected static Collection<Entry<Pattern,String>> forbidden
protected Collection<Entry<Pattern,String>> getPatterns()
RegexpReplacergetPatterns in class RegexpReplacerprotected String getConfigFile()
RegexpReplacergetConfigFile in class RegexpReplacerprotected void readDefaultPatterns(Collection<Entry<Pattern,String>> patterns)
RegexpReplacerreadDefaultPatterns in class RegexpReplacerpublic String toString()
toString in interface TransformertoString in class RegexpReplacerMMBase 1.9-SNAPSHOT - ${javadoctimestamp}