Liferay 6.0.5

com.liferay.portlet.journal.util
Class ContentTransformerListener

java.lang.Object
  extended by com.liferay.portlet.journal.util.TransformerListener
      extended by com.liferay.portlet.journal.util.ContentTransformerListener

public class ContentTransformerListener
extends TransformerListener


Constructor Summary
ContentTransformerListener()
           
 
Method Summary
 String onOutput(String s)
           
 String onScript(String s)
           
 String onXml(String s)
           
protected  void replace(Element root)
           
protected  String replace(String xml)
          Fill one article with content from another approved article.
 
Methods inherited from class com.liferay.portlet.journal.util.TransformerListener
getLanguageId, getTokens, isTemplateDriven, setLanguageId, setTemplateDriven, setTokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentTransformerListener

public ContentTransformerListener()
Method Detail

onXml

public String onXml(String s)
Specified by:
onXml in class TransformerListener

onScript

public String onScript(String s)
Specified by:
onScript in class TransformerListener

onOutput

public String onOutput(String s)
Specified by:
onOutput in class TransformerListener

replace

protected String replace(String xml)
Fill one article with content from another approved article. See the article DOCUMENTATION-INSTALLATION-BORLAND for a sample use case.

Returns:
the processed string

replace

protected void replace(Element root)
                throws Exception
Throws:
Exception

Liferay 6.0.5