public interface LocalisationFactory
| Modifier and Type | Method and Description |
|---|---|
<T extends PluginDataContainer> |
createLocalisedView(java.lang.Class<T> clazz,
T target,
java.util.Locale locale)
Create a localised view on the given
target object. |
<T extends PluginDataContainer> T createLocalisedView(java.lang.Class<T> clazz, T target, java.util.Locale locale)
target object. For
performance reasons, the target object will be returned, if no
translation is found in the plug-in data or the designated locale is
null.T - The type of the target.clazz - The model interface, i.e. the interface for accessing the
targettarget - The actual model object.locale - The locale for which the values should be translated.