Package nz.org.riskscape.engine.i18n
Interface ObjectRenderer
- All Superinterfaces:
PluginFeature
Allows plugins to define custom 'toString' rules for generating a localized string representation of an object, in addition to the defaults.
-
Method Summary
-
Method Details
-
canRender
- Returns:
- true if this object renderer can and is meant to print out the given object
-
render
Generate a localized string for an object
- Parameters:
messages
- the i18n subsystem - used for looking upMessageSource
sobject
- the object to turn in to a stringlocale
- the locale to print it out in- Returns:
- a string, or null if it couldn't be translated.
-