Liferay 6.2-ce-ga5

com.liferay.portlet.journal.util
Class PropertiesTransformerListener

java.lang.Object
  extended by com.liferay.portal.kernel.templateparser.BaseTransformerListener
      extended by com.liferay.portlet.journal.util.PropertiesTransformerListener
All Implemented Interfaces:
TransformerListener

public class PropertiesTransformerListener
extends BaseTransformerListener


Constructor Summary
PropertiesTransformerListener()
           
 
Method Summary
 String onOutput(String output, String languageId, Map<String,String> tokens)
           
 String onScript(String script, String xml, String languageId, Map<String,String> tokens)
           
protected  String replace(String s, String languageId, Map<String,String> tokens)
          Replace the properties in a given string with their values fetched from the template GLOBAL-PROPERTIES.
 
Methods inherited from class com.liferay.portal.kernel.templateparser.BaseTransformerListener
onXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesTransformerListener

public PropertiesTransformerListener()
Method Detail

onOutput

public String onOutput(String output,
                       String languageId,
                       Map<String,String> tokens)
Specified by:
onOutput in interface TransformerListener
Overrides:
onOutput in class BaseTransformerListener

onScript

public String onScript(String script,
                       String xml,
                       String languageId,
                       Map<String,String> tokens)
Specified by:
onScript in interface TransformerListener
Overrides:
onScript in class BaseTransformerListener

replace

protected String replace(String s,
                         String languageId,
                         Map<String,String> tokens)
Replace the properties in a given string with their values fetched from the template GLOBAL-PROPERTIES.

Returns:
the processed string

Liferay 6.2-ce-ga5