Package com.axelor.text
Class GroovyTemplates
java.lang.Object
com.axelor.text.GroovyTemplates
- All Implemented Interfaces:
Templates
The implementation of
Templates for groovy string template support.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GroovyTemplates
public GroovyTemplates()
-
-
Method Details
-
fromText
Description copied from interface:TemplatesCreate a newTemplateinstance from the given template text. -
from
Description copied from interface:TemplatesCreate a newTemplateinstance from the given template file.- Specified by:
fromin interfaceTemplates- Parameters:
file- the template file- Returns:
- an instance of
Template - Throws:
IOException- if file read throwsIOException
-
from
Description copied from interface:TemplatesCreate a newTemplateinstance from the given reader.- Specified by:
fromin interfaceTemplates- Parameters:
reader- theReaderto read the template- Returns:
- an instance of
Template - Throws:
IOException- if reader throwsIOException
-