Liferay 6.0.5

com.liferay.portlet.journal.util
Class VelocityTemplateParser

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

public class VelocityTemplateParser
extends BaseTemplateParser


Constructor Summary
VelocityTemplateParser()
           
 
Method Summary
protected  String doTransform(ThemeDisplay themeDisplay, Map<String,String> tokens, String viewMode, String languageId, String xml, String script)
           
protected  List<TemplateNode> extractDynamicContents(ThemeDisplay themeDisplay, Element parent)
           
protected  String injectEditInPlace(String xml, String script)
           
protected  Map<String,Object> insertRequestVariables(Element parent)
           
protected  String wrapField(String script, String name, String type, String call)
           
 
Methods inherited from class com.liferay.portlet.journal.util.BaseTemplateParser
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

doTransform

protected String doTransform(ThemeDisplay themeDisplay,
                             Map<String,String> tokens,
                             String viewMode,
                             String languageId,
                             String xml,
                             String script)
                      throws Exception
Overrides:
doTransform in class BaseTemplateParser
Throws:
Exception

extractDynamicContents

protected List<TemplateNode> extractDynamicContents(ThemeDisplay themeDisplay,
                                                    Element parent)
                                             throws TransformException
Throws:
TransformException

injectEditInPlace

protected String injectEditInPlace(String xml,
                                   String script)
                            throws DocumentException
Throws:
DocumentException

insertRequestVariables

protected Map<String,Object> insertRequestVariables(Element parent)

wrapField

protected String wrapField(String script,
                           String name,
                           String type,
                           String call)

Liferay 6.0.5