com.semarchy.mdm.runtime.model.labels
Interface IRuntimeLabelProvider

All Known Subinterfaces:
IModelLabelProvider

public interface IRuntimeLabelProvider

IRuntimeLabelProvider defines the interface that allows obtaining Labels and Descriptions for MetaData objects for a given Locale. IDataAccessModel dataAccessModel = ...; IView view = dataAccessModel.getView(...); Locale locale = ...; // obtain the locale from user browser or from server locale... String viewLabel = dataAccessModel.getLabelProvider().getLabel(view, locale); String viewDescription = dataAccessModel.getLabelProvider().getLabel(view, locale);

Author:
skamel

Method Summary
 String getDescription(Object pObject, Locale pLocale)
           Returns the description of an object in a given locale
 String getLabel(Object pObject, Locale pLocale)
           Returns a label for an object in the given locale
 String getPluralLabel(Object pObject, Locale pLocale)
           Returns a plural label for an object in the given locale
 

Method Detail

getLabel

String getLabel(Object pObject,
                Locale pLocale)

Returns a label for an object in the given locale

Parameters:
pObject -
pLocale -
Returns:
the translated object

getPluralLabel

String getPluralLabel(Object pObject,
                      Locale pLocale)

Returns a plural label for an object in the given locale

Parameters:
pObject -
pLocale -
Returns:
the translated object

getDescription

String getDescription(Object pObject,
                      Locale pLocale)

Returns the description of an object in a given locale

Parameters:
pObject -
pLocale -
Returns:


Copyright © 2015. All Rights Reserved.