Package org.wso2.carbon.utils.i18n
Class Messages
- java.lang.Object
-
- org.wso2.carbon.utils.i18n.Messages
-
public class Messages extends Object
-
-
Constructor Summary
Constructors Constructor Description Messages()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetMessage(String key)Get a message from resource.properties from the package of the given object.static StringgetMessage(String key, String arg0)Get a message from resource.properties from the package of the given object.static StringgetMessage(String key, String[] args)Get a message from resource.properties from the package of the given object.static StringgetMessage(String key, String arg0, String arg1)Get a message from resource.properties from the package of the given object.static StringgetMessage(String key, String arg0, String arg1, String arg2)Get a message from resource.properties from the package of the given object.static StringgetMessage(String key, String arg0, String arg1, String arg2, String arg3)Get a message from resource.properties from the package of the given object.static StringgetMessage(String key, String arg0, String arg1, String arg2, String arg3, String arg4)Get a message from resource.properties from the package of the given object.static MessageBundlegetMessageBundle()static ResourceBundlegetResourceBundle()
-
-
-
Method Detail
-
getMessage
public static String getMessage(String key)
Get a message from resource.properties from the package of the given object.- Parameters:
key- The resource key- Returns:
- The formatted message
-
getMessage
public static String getMessage(String key, String arg0)
Get a message from resource.properties from the package of the given object.- Parameters:
key- The resource keyarg0- The argument to place in variable {0}- Returns:
- The formatted message
-
getMessage
public static String getMessage(String key, String arg0, String arg1)
Get a message from resource.properties from the package of the given object.- Parameters:
key- The resource keyarg0- The argument to place in variable {0}arg1- The argument to place in variable {1}- Returns:
- The formatted message
-
getMessage
public static String getMessage(String key, String arg0, String arg1, String arg2)
Get a message from resource.properties from the package of the given object.- Parameters:
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}- Returns:
- The formatted message
-
getMessage
public static String getMessage(String key, String arg0, String arg1, String arg2, String arg3)
Get a message from resource.properties from the package of the given object.- Parameters:
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}- Returns:
- The formatted message
-
getMessage
public static String getMessage(String key, String arg0, String arg1, String arg2, String arg3, String arg4)
Get a message from resource.properties from the package of the given object.- Parameters:
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}- Returns:
- The formatted message
-
getMessage
public static String getMessage(String key, String[] args)
Get a message from resource.properties from the package of the given object.- Parameters:
key- The resource keyargs- An array of objects to place in corresponding variables- Returns:
- The formatted message
-
getResourceBundle
public static ResourceBundle getResourceBundle()
-
getMessageBundle
public static MessageBundle getMessageBundle()
-
-