Interface LocalisationFactory


public interface LocalisationFactory
Factory related to the localisation of process model objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends PluginDataContainer>
    T
    createLocalisedView(Class<T> clazz, T target, Locale locale)
    Create a localised view on the given target object.
  • Method Details

    • createLocalisedView

      <T extends PluginDataContainer> T createLocalisedView(Class<T> clazz, T target, Locale locale)
      Create a localised view on the given 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.
      When requiring equality of the created view, for instance when storing in a hashing collection, make sure that the Object.equals(Object) implementations of the implementing classes are prepared for comparing proxy instances. Usually they need to WrappingProxy.unwrap(Class) the expected class.
      Type Parameters:
      T - The type of the target.
      Parameters:
      clazz - The model interface, i.e. the interface for accessing the target
      target - The actual model object.
      locale - The locale for which the values should be translated.
      Returns:
      A translating view on the target object, or the target object itself, if no translation is available.