Package org.mwolff.toolbox.velocitytools
Class VelocityMerger
- java.lang.Object
-
- org.mwolff.toolbox.velocitytools.VelocityMerger
-
public class VelocityMerger extends Object
Merges a velocity template with properties of the property file.
-
-
Constructor Summary
Constructors Constructor Description VelocityMerger()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
evaluate(org.apache.velocity.VelocityContext context, StringWriter w, String s)
Only for test purposes to test all the fragments.String
mergeWithContext(org.apache.velocity.VelocityContext context, String pathToTemplate)
String
mergeWithContext(org.apache.velocity.VelocityContext context, String pathToTemplate, boolean cp)
String
mergeWithPropertyFileWithFilePath(String pathToTemplate)
String
mergeWithPropertyWithClassPath()
void
setProperties(Properties properties)
void
setTemplateFileName(String template)
-
-
-
Method Detail
-
setTemplateFileName
public void setTemplateFileName(String template)
-
setProperties
public void setProperties(Properties properties)
-
mergeWithPropertyFileWithFilePath
public String mergeWithPropertyFileWithFilePath(String pathToTemplate)
-
mergeWithPropertyWithClassPath
public String mergeWithPropertyWithClassPath()
-
evaluate
public static void evaluate(org.apache.velocity.VelocityContext context, StringWriter w, String s)
Only for test purposes to test all the fragments.
-
mergeWithContext
public String mergeWithContext(org.apache.velocity.VelocityContext context, String pathToTemplate)
-
-