Class VelocityMerger


  • public class VelocityMerger
    extends Object
    Merges a velocity template with properties of the property file.
    • Constructor Detail

      • VelocityMerger

        public VelocityMerger()
    • 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)
      • mergeWithContext

        public String mergeWithContext​(org.apache.velocity.VelocityContext context,
                                       String pathToTemplate,
                                       boolean cp)