Interface TemplateEngine
-
public interface TemplateEngineThe Interface TemplateEngine.Created: 2016. 1. 9.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprocess(java.lang.String templateName, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer)Executes template, using the data-model provided, writing the generated output to the suppliedWriter.voidprocess(java.lang.String templateName, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer, java.util.Locale locale)Executes template, using the data-model provided, writing the generated output to the suppliedWriter.voidprocess(java.lang.String templateName, java.util.Map<java.lang.String,java.lang.Object> model, java.lang.String templateSource, java.io.Writer writer)Executes template, using the data-model provided, writing the generated output to the suppliedWriter.
-
-
-
Method Detail
-
process
void process(java.lang.String templateName, java.util.Map<java.lang.String,java.lang.Object> model, java.lang.String templateSource, java.io.Writer writer) throws TemplateEngineProcessExceptionExecutes template, using the data-model provided, writing the generated output to the suppliedWriter.- Parameters:
templateName- the template namemodel- the holder of the variables visible from the template (name-value pairs)templateSource- the template sourcewriter- theWriterwhere the output of the template will go.Writer.close()is not called.- Throws:
TemplateEngineProcessException- if an exception occurs during template processing
-
process
void process(java.lang.String templateName, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer) throws TemplateEngineProcessExceptionExecutes template, using the data-model provided, writing the generated output to the suppliedWriter.- Parameters:
templateName- the template namemodel- the holder of the variables visible from the template (name-value pairs)writer- theWriterwhere the output of the template will go.Writer.close()is not called.- Throws:
TemplateEngineProcessException- if an exception occurs during template processing
-
process
void process(java.lang.String templateName, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer, java.util.Locale locale) throws TemplateEngineProcessExceptionExecutes template, using the data-model provided, writing the generated output to the suppliedWriter.- Parameters:
templateName- the template namemodel- the holder of the variables visible from the template (name-value pairs)writer- theWriterwhere the output of the template will go.Writer.close()is not called.locale- the locale- Throws:
TemplateEngineProcessException- if an exception occurs during template processing
-
-