|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.freemarker.FreemarkerUtil
public class FreemarkerUtil
A bunch of utility methods to render freemarker templates into Strings.
FreemarkerHelper
Constructor Summary | |
---|---|
FreemarkerUtil()
|
Method Summary | |
---|---|
static java.lang.String |
createTemplateName(java.lang.Class klass,
java.lang.String ext)
|
static java.lang.String |
createTemplateName(java.lang.Class klass,
java.lang.String classifier,
java.lang.String ext)
|
static java.lang.String |
process(java.lang.Class klass,
java.lang.Object thisObj)
Uses the class to create the templates name and passes the object under the name 'this'. |
static java.lang.String |
process(java.lang.Object thisObj)
Uses the class of the object to create the templates name, passes the object under the name 'this' and returns the result in a String. |
static java.lang.String |
process(java.lang.Object thisObj,
java.lang.String classifier,
java.lang.String ext)
|
static java.lang.String |
process(java.lang.String name,
java.util.Map data)
Process this template with the passed data and returns the result in a String. |
static void |
process(java.lang.String name,
java.util.Map data,
java.io.Writer writer)
Process the template with the data and writes the result to the writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FreemarkerUtil()
Method Detail |
---|
public static java.lang.String process(java.lang.Object thisObj)
public static java.lang.String process(java.lang.Object thisObj, java.lang.String classifier, java.lang.String ext)
public static java.lang.String process(java.lang.Class klass, java.lang.Object thisObj)
public static java.lang.String process(java.lang.String name, java.util.Map data)
public static void process(java.lang.String name, java.util.Map data, java.io.Writer writer)
public static java.lang.String createTemplateName(java.lang.Class klass, java.lang.String ext)
public static java.lang.String createTemplateName(java.lang.Class klass, java.lang.String classifier, java.lang.String ext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |