com.liferay.portlet.journal.util
Class VelocityTemplateParser
java.lang.Object
com.liferay.portlet.journal.util.BaseTemplateParser
com.liferay.portlet.journal.util.VelocityTemplateParser
- All Implemented Interfaces:
- TemplateParser
- Direct Known Subclasses:
- FreeMarkerTemplateParser
public class VelocityTemplateParser
- extends BaseTemplateParser
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityTemplateParser
public VelocityTemplateParser()
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)