Package net.solarnetwork.node.setup
Class LocalizedPluginInfo
java.lang.Object
net.solarnetwork.node.setup.LocalizedPluginInfo
- All Implemented Interfaces:
PluginInfo
Localized version of
PluginInfo so that calls to non-localized
JavaBean accessors return localized values.- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionLocalizedPluginInfo(PluginInfo info, Locale locale) Construct a localized PluginInfo. -
Method Summary
Modifier and TypeMethodDescriptionGet a description of the plugin.getLocalizedDescription(Locale otherLocale) Get a localized description of the plugin.getLocalizedName(Locale otherLocale) Get a localized name of the plugin.getName()Get a name of the plugin.
-
Constructor Details
-
LocalizedPluginInfo
Construct a localized PluginInfo.- Parameters:
info- the non-localized info instance to delegate tolocale- the desired locale to use
-
-
Method Details
-
getName
Description copied from interface:PluginInfoGet a name of the plugin.- Specified by:
getNamein interfacePluginInfo- Returns:
- the name
-
getDescription
Description copied from interface:PluginInfoGet a description of the plugin.- Specified by:
getDescriptionin interfacePluginInfo- Returns:
- the description
-
getLocalizedName
Description copied from interface:PluginInfoGet a localized name of the plugin.- Specified by:
getLocalizedNamein interfacePluginInfo- Parameters:
otherLocale- the desired locale- Returns:
- the name
-
getLocalizedDescription
Description copied from interface:PluginInfoGet a localized description of the plugin.- Specified by:
getLocalizedDescriptionin interfacePluginInfo- Parameters:
otherLocale- the desired locale- Returns:
- the description
-