Class PluginMessages

java.lang.Object
org.pentaho.di.core.util.PluginMessages

public final class PluginMessages extends Object
Simple utility for messages. Usage: [...] private static final PluginMessages MESSAGES = PluginMessages.getMessages([class]). [...] MESSAGES.getString([key])
Author:
Thomas Hoedl(asc042)
  • Method Details

    • getMessages

      public static PluginMessages getMessages(String packageName) throws IllegalArgumentException
      Factory method.
      Parameters:
      packageName - package name.
      Returns:
      messages.
      Throws:
      IllegalArgumentException - if package name is blank.
    • getMessages

      public static PluginMessages getMessages(Class<?> someClassInPackage) throws IllegalArgumentException
      Factory method.
      Parameters:
      someClassInPackage - some class in package.
      Returns:
      messages.
      Throws:
      IllegalArgumentException - if class is null
    • getPackageName

      public String getPackageName()
      Returns:
      the packageName
    • getString

      public String getString(String key)
      Parameters:
      key - the key.
      Returns:
      the message.
    • getString

      public String getString(String key, String param1)
      Parameters:
      key - the key.
      param1 - the param1.
      Returns:
      the message.
    • getString

      public String getString(String key, String param1, String param2)
      Parameters:
      key - the key.
      param1 - the param1.
      param2 - the param2.
      Returns:
      the message.
    • getString

      public String getString(String key, String param1, String param2, String param3)
      Parameters:
      key - the key.
      param1 - the param1.
      param2 - the param2.
      param3 - the param3.
      Returns:
      the message.
    • getString

      public String getString(String key, String param1, String param2, String param3, String param4)
      Parameters:
      key - the key.
      param1 - the param1.
      param2 - the param2.
      param3 - the param3.
      param4 - the param4.
      Returns:
      the message.
    • getString

      public String getString(String key, String param1, String param2, String param3, String param4, String param5)
      Parameters:
      key - the key.
      param1 - the param1.
      param2 - the param2.
      param3 - the param3.
      param4 - the param4.
      param5 - the param5.
      Returns:
      the message.
    • getString

      public String getString(String key, String param1, String param2, String param3, String param4, String param5, String param6)
      Parameters:
      key - the key.
      param1 - the param1.
      param2 - the param2.
      param3 - the param3.
      param4 - the param4.
      param5 - the param5.
      param6 - the param6.
      Returns:
      the message.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: