Class LocalizedPluginInfo

java.lang.Object
net.solarnetwork.node.setup.LocalizedPluginInfo
All Implemented Interfaces:
PluginInfo

public class LocalizedPluginInfo extends Object implements PluginInfo
Localized version of PluginInfo so that calls to non-localized JavaBean accessors return localized values.
Version:
1.0
Author:
matt
  • Constructor Details

    • LocalizedPluginInfo

      public LocalizedPluginInfo(PluginInfo info, Locale locale)
      Construct a localized PluginInfo.
      Parameters:
      info - the non-localized info instance to delegate to
      locale - the desired locale to use
  • Method Details

    • getName

      public String getName()
      Description copied from interface: PluginInfo
      Get a name of the plugin.
      Specified by:
      getName in interface PluginInfo
      Returns:
      the name
    • getDescription

      public String getDescription()
      Description copied from interface: PluginInfo
      Get a description of the plugin.
      Specified by:
      getDescription in interface PluginInfo
      Returns:
      the description
    • getLocalizedName

      public String getLocalizedName(Locale otherLocale)
      Description copied from interface: PluginInfo
      Get a localized name of the plugin.
      Specified by:
      getLocalizedName in interface PluginInfo
      Parameters:
      otherLocale - the desired locale
      Returns:
      the name
    • getLocalizedDescription

      public String getLocalizedDescription(Locale otherLocale)
      Description copied from interface: PluginInfo
      Get a localized description of the plugin.
      Specified by:
      getLocalizedDescription in interface PluginInfo
      Parameters:
      otherLocale - the desired locale
      Returns:
      the description