Interface TemplateEntry

    • Method Detail

      • getText

        default java.lang.String getText​(TemplateEngineDataProvider dataProvider)
        Execute this template by generating text for a given data provider.
        Parameters:
        dataProvider - the data provider from which information should be compiled to a string
        Returns:
        the generated text
      • appendText

        void appendText​(java.lang.StringBuilder result,
                        TemplateEngineDataProvider dataProvider)
        Execute this template by generating text for a given data provider.
        Parameters:
        result - the StringBuilder to append the text to
        dataProvider - the data provider from which information should be compiled to a string
      • isValid

        boolean isValid​(TemplateEngineDataProvider dataProvider)
        Check if this template is applicable to the given data provider.
        Parameters:
        dataProvider - the data provider to check
        Returns:
        true if all conditions are fulfilled to apply the template (for instance all required key=value mappings are present), false otherwise