Package io.cui.tools.formatting.template
Interface TemplateFormatter<T extends FormatterSupport>
-
- Type Parameters:
T- bounded type based onFormatterSupport
- 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 onFormatterSupportinto text by using a defined template.See
io.cui.tools.formattingfor details.- Author:
- Eugen Fischer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringformat(T reference)Execute transformation based on configured template and values for the defined placeholders.
-
-
-
Method Detail
-
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 benull- Returns:
- formatted text
- Throws:
NullPointerException- if reference is missing
-
-