Interface TemplateFormatter<T extends FormatterSupport>

Type Parameters:
T - bounded type based on FormatterSupport
All Superinterfaces:
Serializable
All Known Implementing Classes:
TemplateFormatterImpl

public interface TemplateFormatter<T extends FormatterSupport> extends Serializable
The formatter should be able to convert complex type based on FormatterSupport into text by using a defined template.

See de.cuioss.tools.formatting for details.

Author:
Eugen Fischer
  • Method Summary

    Modifier and Type
    Method
    Description
    format(T reference)
    Execute transformation based on configured template and values for the defined placeholders.
  • Method Details

    • format

      String format(T reference)
      Execute transformation based on configured template and values for the defined placeholders. Missing values should get ignored.
      Parameters:
      reference - must not be null
      Returns:
      formatted text
      Throws:
      NullPointerException - if reference is missing