Package org.pentaho.di.core.util
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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PluginMessages
getMessages(Class<?> someClassInPackage)
Factory method.static PluginMessages
getMessages(String packageName)
Factory method.String
getPackageName()
String
getString(String key)
String
getString(String key, String param1)
String
getString(String key, String param1, String param2)
String
getString(String key, String param1, String param2, String param3)
String
getString(String key, String param1, String param2, String param3, String param4)
String
getString(String key, String param1, String param2, String param3, String param4, String param5)
String
getString(String key, String param1, String param2, String param3, String param4, String param5, String param6)
String
toString()
-
-
-
Method Detail
-
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, 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 classObject
- See Also:
Object.toString()
-
-