Class CsvColumnDirective

java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.directives.CsvColumnDirective
All Implemented Interfaces:
Nice2TemplateDirective, TemplateIdentifiers, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

public class CsvColumnDirective extends Object implements Nice2TemplateDirective, TemplateIdentifiers
Directive to format a value for rendering to a csv output file. This directive will take a string value and transform it to the string to be output to a csv file by adding quotes at beginning and end of the string, as well as escaping quotes inside of the string.
  • Constructor Details

    • CsvColumnDirective

      public CsvColumnDirective()
  • Method Details

    • execute

      public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException
      Specified by:
      execute in interface freemarker.template.TemplateDirectiveModel
      Throws:
      freemarker.template.TemplateException
      IOException