Package org.stringtemplate.v4
Interface AttributeRenderer<T>
-
- Type Parameters:
T
- the type of values this renderer can handle.
- All Known Implementing Classes:
DateRenderer
,NumberRenderer
,StringRenderer
public interface AttributeRenderer<T>
This interface describes an object that knows how to format or otherwise render an object appropriately. There is one renderer registered per group for a given Java type.If the format string passed to the renderer is not recognized then simply call
Object.toString()
.formatString
can benull
butlocale
will at least beLocale.getDefault()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
toString(T value, String formatString, Locale locale)
-