Interface TemplateProcessor
-
- All Known Implementing Classes:
ContextTemplateProcessor
public interface TemplateProcessor
The Interface TemplateProcessor.Created: 2016. 1. 14.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
process(TemplateRule templateRule, Activity activity)
Template processing with specified TemplateRule.void
process(TemplateRule templateRule, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model)
Template processing with specified TemplateRule.void
process(TemplateRule templateRule, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer)
Template processing with specified TemplateRule.java.lang.String
process(TemplateRule templateRule, java.util.Map<java.lang.String,java.lang.Object> model)
Template processing with specified TemplateRule.java.lang.String
process(java.lang.String templateId)
Template processing with specified TemplateRule by its ID.void
process(java.lang.String templateId, Activity activity)
Template processing with specified TemplateRule by its ID.void
process(java.lang.String templateId, Activity activity, java.io.Writer writer)
Template processing with specified TemplateRule by its ID.void
process(java.lang.String templateId, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model)
Template processing with specified TemplateRule by its ID.void
process(java.lang.String templateId, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer)
Template processing with specified TemplateRule by its ID.java.lang.String
process(java.lang.String templateId, java.util.Map<java.lang.String,java.lang.Object> model)
Template processing with specified TemplateRule by its ID.
-
-
-
Method Detail
-
process
java.lang.String process(java.lang.String templateId)
Template processing with specified TemplateRule by its ID.- Parameters:
templateId
- the template id- Returns:
- the output string of the template
-
process
java.lang.String process(java.lang.String templateId, java.util.Map<java.lang.String,java.lang.Object> model)
Template processing with specified TemplateRule by its ID.- Parameters:
templateId
- the template idmodel
- the holder of the variables visible from the template (name-value pairs)- Returns:
- the output string of the template
-
process
java.lang.String process(TemplateRule templateRule, java.util.Map<java.lang.String,java.lang.Object> model)
Template processing with specified TemplateRule.- Parameters:
templateRule
- the template rulemodel
- the holder of the variables visible from the template (name-value pairs)- Returns:
- the output string of the template
-
process
void process(java.lang.String templateId, Activity activity)
Template processing with specified TemplateRule by its ID.- Parameters:
templateId
- the template idactivity
- the activity
-
process
void process(TemplateRule templateRule, Activity activity)
Template processing with specified TemplateRule.- Parameters:
templateRule
- the template ruleactivity
- the activity
-
process
void process(java.lang.String templateId, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model)
Template processing with specified TemplateRule by its ID.- Parameters:
templateId
- the template idactivity
- the activitymodel
- the holder of the variables visible from the template (name-value pairs)
-
process
void process(java.lang.String templateId, Activity activity, java.io.Writer writer)
Template processing with specified TemplateRule by its ID.- Parameters:
templateId
- the template idactivity
- the activitywriter
- theWriter
where the output of the template will go.Writer.close()
is not called.
-
process
void process(TemplateRule templateRule, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model)
Template processing with specified TemplateRule.- Parameters:
templateRule
- the template ruleactivity
- the activitymodel
- the holder of the variables visible from the template (name-value pairs)
-
process
void process(java.lang.String templateId, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer)
Template processing with specified TemplateRule by its ID. Writing the generated output to the suppliedWriter
.- Parameters:
templateId
- the template idactivity
- the activitymodel
- the holder of the variables visible from the template (name-value pairs)writer
- theWriter
where the output of the template will go.Writer.close()
is not called.
-
process
void process(TemplateRule templateRule, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer)
Template processing with specified TemplateRule. Writing the generated output to the suppliedWriter
.- Parameters:
templateRule
- the template ruleactivity
- the activitymodel
- the holder of the variables visible from the template (name-value pairs)writer
- theWriter
where the output of the template will go.Writer.close()
is not called.
-
-