Interface TemplateProcessor
-
- All Known Implementing Classes:
ContextTemplateProcessor
public interface TemplateProcessorThe Interface TemplateProcessor.Created: 2016. 1. 14.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprocess(TemplateRule templateRule, Activity activity)Template processing with specified TemplateRule.voidprocess(TemplateRule templateRule, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model)Template processing with specified TemplateRule.voidprocess(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.Stringprocess(TemplateRule templateRule, java.util.Map<java.lang.String,java.lang.Object> model)Template processing with specified TemplateRule.java.lang.Stringprocess(java.lang.String templateId)Template processing with specified TemplateRule by its ID.voidprocess(java.lang.String templateId, Activity activity)Template processing with specified TemplateRule by its ID.voidprocess(java.lang.String templateId, Activity activity, java.io.Writer writer)Template processing with specified TemplateRule by its ID.voidprocess(java.lang.String templateId, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model)Template processing with specified TemplateRule by its ID.voidprocess(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.Stringprocess(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- theWriterwhere 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- theWriterwhere 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- theWriterwhere the output of the template will go.Writer.close()is not called.
-
-