Interface TemplateRenderer
-
- All Known Implementing Classes:
ContextTemplateRenderer
public interface TemplateRenderer
The Interface TemplateRenderer.Created: 2016. 1. 14.
-
-
Method Summary
Modifier and Type Method Description void
render(TemplateRule templateRule, Activity activity)
Renders the template with specified TemplateRule.void
render(TemplateRule templateRule, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model)
Renders the template with specified TemplateRule.void
render(TemplateRule templateRule, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer)
Renders the template with specified TemplateRule.java.lang.String
render(TemplateRule templateRule, java.util.Map<java.lang.String,java.lang.Object> model)
Renders the template with specified TemplateRule.java.lang.String
render(java.lang.String templateId)
Renders the template with specified TemplateRule by its ID.void
render(java.lang.String templateId, Activity activity)
Renders the template with specified TemplateRule by its ID.void
render(java.lang.String templateId, Activity activity, java.io.Writer writer)
Renders the template with specified TemplateRule by its ID.void
render(java.lang.String templateId, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model)
Renders the template with specified TemplateRule by its ID.void
render(java.lang.String templateId, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer)
TRenders the template with specified TemplateRule by its ID.java.lang.String
render(java.lang.String templateId, java.util.Map<java.lang.String,java.lang.Object> model)
Renders the template with specified TemplateRule by its ID.
-
-
-
Method Detail
-
render
java.lang.String render(java.lang.String templateId)
Renders the template with specified TemplateRule by its ID.- Parameters:
templateId
- the template id- Returns:
- the output string of the template
-
render
java.lang.String render(java.lang.String templateId, java.util.Map<java.lang.String,java.lang.Object> model)
Renders the template 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
-
render
java.lang.String render(TemplateRule templateRule, java.util.Map<java.lang.String,java.lang.Object> model)
Renders the template 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
-
render
void render(java.lang.String templateId, Activity activity)
Renders the template with specified TemplateRule by its ID.- Parameters:
templateId
- the template idactivity
- the activity
-
render
void render(TemplateRule templateRule, Activity activity)
Renders the template with specified TemplateRule.- Parameters:
templateRule
- the template ruleactivity
- the activity
-
render
void render(java.lang.String templateId, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model)
Renders the template 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)
-
render
void render(java.lang.String templateId, Activity activity, java.io.Writer writer)
Renders the template 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.
-
render
void render(TemplateRule templateRule, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model)
Renders the template with specified TemplateRule.- Parameters:
templateRule
- the template ruleactivity
- the activitymodel
- the holder of the variables visible from the template (name-value pairs)
-
render
void render(java.lang.String templateId, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer)
TRenders the template 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.
-
render
void render(TemplateRule templateRule, Activity activity, java.util.Map<java.lang.String,java.lang.Object> model, java.io.Writer writer)
Renders the template 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.
-
-