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:
com.liferay.portal.kernel.templateparser.TransformerListener

public class PropertiesTransformerListener
extends com.liferay.portal.kernel.templateparser.BaseTransformerListener

Author:
Brian Wing Shun Chan

Constructor Summary
PropertiesTransformerListener()
           
 
Method Summary
 java.lang.String onOutput(java.lang.String s)
           
 java.lang.String onScript(java.lang.String s)
           
 java.lang.String onXml(java.lang.String s)
           
protected  java.lang.String replace(java.lang.String s)
          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
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

PropertiesTransformerListener

public PropertiesTransformerListener()
Method Detail

onOutput

public java.lang.String onOutput(java.lang.String s)
Specified by:
onOutput in interface com.liferay.portal.kernel.templateparser.TransformerListener
Specified by:
onOutput in class com.liferay.portal.kernel.templateparser.BaseTransformerListener

onScript

public java.lang.String onScript(java.lang.String s)
Specified by:
onScript in interface com.liferay.portal.kernel.templateparser.TransformerListener
Specified by:
onScript in class com.liferay.portal.kernel.templateparser.BaseTransformerListener

onXml

public java.lang.String onXml(java.lang.String s)
Specified by:
onXml in interface com.liferay.portal.kernel.templateparser.TransformerListener
Specified by:
onXml in class com.liferay.portal.kernel.templateparser.BaseTransformerListener

replace

protected java.lang.String replace(java.lang.String s)
Replace the properties in a given string with their values fetched from the template GLOBAL-PROPERTIES.

Returns:
the processed string