com.liferay.portlet.wiki.translators
Class BaseTranslator
java.lang.Object
com.liferay.portlet.wiki.translators.BaseTranslator
- Direct Known Subclasses:
- ClassicToCreoleTranslator, MediaWikiToCreoleTranslator
public abstract class BaseTranslator
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
regexps
protected Map<String,String> regexps
nowikiRegexps
protected List<String> nowikiRegexps
BaseTranslator
public BaseTranslator()
translate
public String translate(String content)
postProcess
protected String postProcess(String content)
preProcess
protected String preProcess(String content)
protectText
protected String protectText(String content,
String markupRegex)
runRegexps
protected String runRegexps(String content)
runRegexp
protected String runRegexp(String content,
String regexp,
String replacement)
unprotectNowikiText
protected String unprotectNowikiText(String content)