Liferay 6.1.2-ce-ga3

com.liferay.portlet.journal.util
Class VelocityTemplateParser

java.lang.Object
  extended by com.liferay.portal.kernel.templateparser.BaseTemplateParser
      extended by com.liferay.portlet.journal.util.VelocityTemplateParser
All Implemented Interfaces:
TemplateParser
Direct Known Subclasses:
FreeMarkerTemplateParser, VelocityTemplateParser, XSLTemplateParser

public class VelocityTemplateParser
extends BaseTemplateParser


Constructor Summary
VelocityTemplateParser()
           
 
Method Summary
protected  String getErrorTemplateContent()
           
protected  String getErrorTemplateId()
           
protected  String getJournalTemplatesPath()
           
protected  TemplateContext getTemplateContext()
           
protected  List<TemplateNode> getTemplateNodes(Element element)
           
protected  boolean mergeTemplate(TemplateContext templateContext, UnsyncStringWriter unsyncStringWriter)
           
protected  void populateTemplateContext(TemplateContext templateContext)
           
protected  String stripCDATA(String s)
           
 
Methods inherited from class com.liferay.portal.kernel.templateparser.BaseTemplateParser
getArticleGroupId, getCompany, getCompanyGroupId, getCompanyId, getDevice, getGroupId, getLanguageId, getScopeGroupId, getScript, getTemplateId, getThemeDisplay, getTokens, getViewMode, getXML, insertRequestVariables, setContextObjects, setLanguageId, setScript, setThemeDisplay, setTokens, setViewMode, setXML, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityTemplateParser

public VelocityTemplateParser()
Method Detail

getErrorTemplateContent

protected String getErrorTemplateContent()

getErrorTemplateId

protected String getErrorTemplateId()

getJournalTemplatesPath

protected String getJournalTemplatesPath()

getTemplateContext

protected TemplateContext getTemplateContext()
                                      throws Exception
Specified by:
getTemplateContext in class BaseTemplateParser
Throws:
Exception

getTemplateNodes

protected List<TemplateNode> getTemplateNodes(Element element)
                                       throws Exception
Specified by:
getTemplateNodes in class BaseTemplateParser
Throws:
Exception

mergeTemplate

protected boolean mergeTemplate(TemplateContext templateContext,
                                UnsyncStringWriter unsyncStringWriter)
                         throws Exception
Specified by:
mergeTemplate in class BaseTemplateParser
Throws:
Exception

populateTemplateContext

protected void populateTemplateContext(TemplateContext templateContext)
                                throws Exception
Overrides:
populateTemplateContext in class BaseTemplateParser
Throws:
Exception

stripCDATA

protected String stripCDATA(String s)

Liferay 6.1.2-ce-ga3