it.geosolutions.tools.freemarker
Class FreeMarkerUtils

java.lang.Object
  extended by it.geosolutions.tools.freemarker.FreeMarkerUtils

public abstract class FreeMarkerUtils
extends Object

Set of static function to use FreeMaker

Author:
Carlo Cancellieri - carlo.cancellieri@geo-solutions.it

Constructor Summary
FreeMarkerUtils()
           
 
Method Summary
static void freeMarker(Object root, FreeMarkerFilter filter, File output)
          Using the root as DataModel (wrapped using the passed FreeMarkerFilter) to produce the output file
static String freeMarkerToString(Object root, FreeMarkerFilter filter)
          Using the root as DataModel (wrapped using the passed FreeMarkerFilter) to produce the returned string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeMarkerUtils

public FreeMarkerUtils()
Method Detail

freeMarker

public static void freeMarker(Object root,
                              FreeMarkerFilter filter,
                              File output)
                       throws Exception
Using the root as DataModel (wrapped using the passed FreeMarkerFilter) to produce the output file

Parameters:
root -
filter -
output - the output file
Throws:
Exception

freeMarkerToString

public static String freeMarkerToString(Object root,
                                        FreeMarkerFilter filter)
                                 throws Exception
Using the root as DataModel (wrapped using the passed FreeMarkerFilter) to produce the returned string

Parameters:
root -
filter -
Returns:
a filtered string
Throws:
Exception


Copyright © 2011-2012 GeoSolutions. All Rights Reserved.