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().formatStringcan benullbutlocalewill at least beLocale.getDefault().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringtoString(T value, String formatString, Locale locale)
-