com.liferay.portlet.journal.util
Class VelocityTemplateParser
java.lang.Object
com.liferay.portal.kernel.templateparser.BaseTemplateParser
com.liferay.portlet.journal.util.VelocityTemplateParser
- All Implemented Interfaces:
- TemplateParser
- Direct Known Subclasses:
- FreeMarkerTemplateParser, VelocityTemplateParser, XSLTemplateParser
public class VelocityTemplateParser
- extends BaseTemplateParser
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 |
VelocityTemplateParser
public VelocityTemplateParser()
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)