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:Templates
Create a newTemplate
instance from the given template text. -
from
Description copied from interface:Templates
Create a newTemplate
instance from the given template file.- Specified by:
from
in interfaceTemplates
- Parameters:
file
- the template file- Returns:
- an instance of
Template
- Throws:
IOException
- if file read throwsIOException
-
from
Description copied from interface:Templates
Create a newTemplate
instance from the given reader.- Specified by:
from
in interfaceTemplates
- Parameters:
reader
- theReader
to read the template- Returns:
- an instance of
Template
- Throws:
IOException
- if reader throwsIOException
-