Class LocalizedGroupOfParameters
- java.lang.Object
-
- org.silverpeas.core.admin.component.model.LocalizedGroupOfParameters
-
public class LocalizedGroupOfParameters extends Object
- Author:
- Nicolas Eysseric
-
-
Constructor Summary
Constructors Constructor Description LocalizedGroupOfParameters(SilverpeasComponent component, GroupOfParameters group, String lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetBundleKeyPrefix()StringgetComponentName()StringgetDescription()StringgetHelp()StringgetLabel()StringgetLanguage()protected StringgetLocalized(String bundleKey, Map<String,String> messages)Gets the localized data first into bundle property files if any, then into map of translations.LocalizedParameterListgetParameters()
-
-
-
Constructor Detail
-
LocalizedGroupOfParameters
public LocalizedGroupOfParameters(SilverpeasComponent component, GroupOfParameters group, String lang)
-
-
Method Detail
-
getBundleKeyPrefix
protected String getBundleKeyPrefix()
-
getLabel
public String getLabel()
-
getDescription
public String getDescription()
-
getHelp
public String getHelp()
-
getParameters
public LocalizedParameterList getParameters()
-
getComponentName
public String getComponentName()
-
getLanguage
public String getLanguage()
-
getLocalized
protected String getLocalized(String bundleKey, Map<String,String> messages)
Gets the localized data first into bundle property files if any, then into map of translations.- Parameters:
bundleKey- the bundle key.messages- the map of translations extracted from XML component descriptors.- Returns:
- the localized data as string.
- Throws:
MissingResourceException- if no translation can be found from the different resource locations.
-
-