public class MessageBundle extends Object
Constructor and Description |
---|
MessageBundle(String projectName,
String packageName,
String resourceName,
Locale locale,
ClassLoader classLoader,
ResourceBundle parent)
Construct a new ExtendMessages
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage(String key)
Gets a string message from the resource bundle for the given key
|
String |
getMessage(String key,
String arg0)
Gets a string message from the resource bundle for the given key.
|
String |
getMessage(String key,
String[] array)
Gets a string message from the resource bundle for the given key.
|
String |
getMessage(String key,
String arg0,
String arg1)
Gets a string message from the resource bundle for the given key.
|
String |
getMessage(String key,
String arg0,
String arg1,
String arg2)
Gets a string message from the resource bundle for the given key.
|
String |
getMessage(String key,
String arg0,
String arg1,
String arg2,
String arg3)
Gets a string message from the resource bundle for the given key.
|
String |
getMessage(String key,
String arg0,
String arg1,
String arg2,
String arg3,
String arg4)
Gets a string message from the resource bundle for the given key.
|
ProjectResourceBundle |
getResourceBundle() |
public MessageBundle(String projectName, String packageName, String resourceName, Locale locale, ClassLoader classLoader, ResourceBundle parent)
public final ProjectResourceBundle getResourceBundle()
public String getMessage(String key)
key
- The resource keypublic String getMessage(String key, String arg0)
Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:
key
- The resource keyarg0
- The argument to place in variable {0}public String getMessage(String key, String arg0, String arg1)
Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:
key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}public String getMessage(String key, String arg0, String arg1, String arg2)
Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:
key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}arg2
- The argument to place in variable {2}public String getMessage(String key, String arg0, String arg1, String arg2, String arg3)
Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:
key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}arg2
- The argument to place in variable {2}arg3
- The argument to place in variable {3}public String getMessage(String key, String arg0, String arg1, String arg2, String arg3, String arg4)
Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:
key
- The resource keyarg0
- The argument to place in variable {0}arg1
- The argument to place in variable {1}arg2
- The argument to place in variable {2}arg3
- The argument to place in variable {3}arg4
- The argument to place in variable {4}public String getMessage(String key, String[] array)
Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:
key
- The resource keyarray
- An array of objects to place in corresponding variablesCopyright © 2016 WSO2 Inc. All rights reserved.