Package org.pentaho.di.core.util
Class PluginMessages
java.lang.Object
org.pentaho.di.core.util.PluginMessages
Simple utility for messages. Usage:
[...]
private static final PluginMessages MESSAGES = PluginMessages.getMessages([class]).
[...]
MESSAGES.getString([key])
- Author:
- Thomas Hoedl(asc042)
-
Method Summary
Modifier and TypeMethodDescriptionstatic PluginMessagesgetMessages(Class<?> someClassInPackage) Factory method.static PluginMessagesgetMessages(String packageName) Factory method.getString(String key, String param1, String param2, String param3, String param4, String param5, String param6) toString()
-
Method Details
-
getMessages
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
- Returns:
- the packageName
-
getString
- Parameters:
key- the key.- Returns:
- the message.
-
getString
- Parameters:
key- the key.param1- the param1.- Returns:
- the message.
-
getString
- Parameters:
key- the key.param1- the param1.param2- the param2.- Returns:
- the message.
-
getString
- Parameters:
key- the key.param1- the param1.param2- the param2.param3- the param3.- Returns:
- the message.
-
getString
- 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
-