Class ManagerBasedLocalizationProviderBase<T>
- java.lang.Object
-
- com._1c.g5.v8.dt.common.localization.ManagerBasedLocalizationProviderBase<T>
-
- All Implemented Interfaces:
ILocalizationProvider<T>
- Direct Known Subclasses:
DtGranularEditorSectionLocalizationProvider
,EnumLiteralLocalizationProvider
,EventNameLocalizationProvider
,FeatureNameLocalizationProvider
public abstract class ManagerBasedLocalizationProviderBase<T> extends Object implements ILocalizationProvider<T>
Base class forLocalizationManager
based localization providers.
-
-
Constructor Summary
Constructors Constructor Description ManagerBasedLocalizationProviderBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getKey(T object)
Obtains key to lookup a string representation usingLocalizationManager
.String
getString(T object)
Obtains string representation of a givenobject
specific to this provider.
-
-
-
Method Detail
-
getString
public final String getString(T object)
Description copied from interface:ILocalizationProvider
Obtains string representation of a givenobject
specific to this provider.- Specified by:
getString
in interfaceILocalizationProvider<T>
- Parameters:
object
- object to obtain string representation of. Should not benull
.- Returns:
- obtained string representation or
null
if no presentation available.
-
getKey
protected abstract String getKey(T object)
Obtains key to lookup a string representation usingLocalizationManager
.- Parameters:
object
- object to get key for.- Returns:
- key corresponding for the object or
null
if no key available.
-
-