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 id
        model - 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 rule
        model - 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 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​(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 id
        activity - the activity
        model - 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 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,
                    java.util.Map<java.lang.String,​java.lang.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​(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 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,
                    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 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.