Liferay 6.2-ce-ga5

com.liferay.portlet.wiki.translators
Class BaseTranslator

java.lang.Object
  extended by com.liferay.portlet.wiki.translators.BaseTranslator
Direct Known Subclasses:
ClassicToCreoleTranslator, MediaWikiToCreoleTranslator

public abstract class BaseTranslator
extends Object


Field Summary
protected  List<String> nowikiRegexps
           
protected  Map<String,String> regexps
           
 
Constructor Summary
BaseTranslator()
           
 
Method Summary
protected  String postProcess(String content)
           
protected  String preProcess(String content)
           
protected  String protectText(String content, String markupRegex)
           
protected  String runRegexp(String content, String regexp, String replacement)
           
protected  String runRegexps(String content)
           
 String translate(String content)
           
protected  String unprotectNowikiText(String content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nowikiRegexps

protected List<String> nowikiRegexps

regexps

protected Map<String,String> regexps
Constructor Detail

BaseTranslator

public BaseTranslator()
Method Detail

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)

runRegexp

protected String runRegexp(String content,
                           String regexp,
                           String replacement)

runRegexps

protected String runRegexps(String content)

unprotectNowikiText

protected String unprotectNowikiText(String content)

Liferay 6.2-ce-ga5