Interface TemplateRenderer

All Known Implementing Classes:
DefaultTemplateRenderer

public interface TemplateRenderer
The Interface TemplateRenderer.

Created: 2016. 1. 14.

  • Method Details

    • render

      String render(String templateId)
      Renders the template with specified TemplateRule by its ID.
      Parameters:
      templateId - the template id
      Returns:
      the output string of the template
    • render

      String render(String templateId, Map<String,Object> model)
      Renders the template with specified TemplateRule by its ID.
      Parameters:
      templateId - the template id
      model - the holder of the variables visible from the template (name-value pairs)
      Returns:
      the output string of the template
    • render

      String render(TemplateRule templateRule, Map<String,Object> model)
      Renders the template with specified TemplateRule.
      Parameters:
      templateRule - the template rule
      model - the holder of the variables visible from the template (name-value pairs)
      Returns:
      the output string of the template
    • render

      void render(String templateId, Activity activity)
      Renders the template with specified TemplateRule by its ID.
      Parameters:
      templateId - the template id
      activity - the activity
    • render

      void render(TemplateRule templateRule, Activity activity)
      Renders the template with specified TemplateRule.
      Parameters:
      templateRule - the template rule
      activity - the activity
    • render

      void render(String templateId, Activity activity, Map<String,Object> model)
      Renders the template with specified TemplateRule by its ID.
      Parameters:
      templateId - the template id
      activity - the activity
      model - the holder of the variables visible from the template (name-value pairs)
    • render

      void render(String templateId, Activity activity, Writer writer)
      Renders the template with specified TemplateRule by its ID.
      Parameters:
      templateId - the template id
      activity - the activity
      writer - the Writer where the output of the template will go. Writer.close() is not called.
    • render

      void render(TemplateRule templateRule, Activity activity, Map<String,Object> model)
      Renders the template with specified TemplateRule.
      Parameters:
      templateRule - the template rule
      activity - the activity
      model - the holder of the variables visible from the template (name-value pairs)
    • render

      void render(String templateId, Activity activity, Map<String,Object> model, Writer writer)
      TRenders the template with specified TemplateRule by its ID. Writing the generated output to the supplied Writer.
      Parameters:
      templateId - the template id
      activity - the activity
      model - the holder of the variables visible from the template (name-value pairs)
      writer - the Writer where the output of the template will go. Writer.close() is not called.
    • render

      void render(TemplateRule templateRule, Activity activity, Map<String,Object> model, Writer writer)
      Renders the template with specified TemplateRule. Writing the generated output to the supplied Writer.
      Parameters:
      templateRule - the template rule
      activity - the activity
      model - the holder of the variables visible from the template (name-value pairs)
      writer - the Writer where the output of the template will go. Writer.close() is not called.