| java.lang.Object org.objectweb.jonas_lib.I18n
I18n | public class I18n (Code) | | This class defines the way for getting message with
ResourceBundle for different language
Inspired from http://java.sun.com/docs/books/tutorial/i18n/
author: Florent Benoit |
Method Summary | |
public static I18n | getInstance(Class c) | public static I18n | getInstance(Class c, ClassLoader cl) | public static I18n | getInstance(String packageName) | public static I18n | getInstance(String packageName, ClassLoader cl) | public String | getMessage(String key, Object[] args) | public String | getMessage(String key) | public String | getMessage(String key, Object obj) | public String | getMessage(String key, Object obj1, Object obj2) | public String | getMessage(String key, Object obj1, Object obj2, Object obj3) | public String | getMessage(String key, Object obj1, Object obj2, Object obj3, Object obj4) | public String | getMessage(String key, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5) | public String | getMessage(String key, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6) |
getInstance | public static I18n getInstance(Class c)(Code) | | Gets the instance for a given class
Parameters: c - the class for which we want a bundle I18n object |
getInstance | public static I18n getInstance(Class c, ClassLoader cl)(Code) | | Gets the instance for a given class
Parameters: c - the class for which we want a bundle Parameters: cl - the classloader used to load bundle I18n object |
getInstance | public static I18n getInstance(String packageName)(Code) | | Gets the instance for a given package
Parameters: packageName - the package for which we want a bundle I18n object |
getInstance | public static I18n getInstance(String packageName, ClassLoader cl)(Code) | | Gets the instance for a given package
Parameters: packageName - the package for which we want a bundle Parameters: cl - the classloader used to load bundle I18n object |
getMessage | public String getMessage(String key, Object[] args)(Code) | | Gets the formatted string with the given arguments
Parameters: key - the keystring on which to apply arguments Parameters: args - the object arguments for the formatter the formatted string |
getMessage | public String getMessage(String key)(Code) | | Gets the value of the given key
Parameters: key - the keystring to retrieve the value for the given key or the key if the value can not be found |
getMessage | public String getMessage(String key, Object obj)(Code) | | Gets the formatted string with the given arguments
Parameters: key - the keystring on which to apply arguments Parameters: obj - the object argument for the formatter the formatted string |
getMessage | public String getMessage(String key, Object obj1, Object obj2)(Code) | | Gets the formatted string with the given arguments
Parameters: key - the keystring on which to apply arguments Parameters: obj1 - the first object argument for the formatter Parameters: obj2 - the second object argument for the formatter the formatted string |
getMessage | public String getMessage(String key, Object obj1, Object obj2, Object obj3)(Code) | | Gets the formatted string with the given arguments
Parameters: key - the keystring on which to apply arguments Parameters: obj1 - the first object argument for the formatter Parameters: obj2 - the second object argument for the formatter Parameters: obj3 - the third object argument for the formatter the formatted string |
getMessage | public String getMessage(String key, Object obj1, Object obj2, Object obj3, Object obj4)(Code) | | Gets the formatted string with the given arguments
Parameters: key - the keystring on which to apply arguments Parameters: obj1 - argument for the formatter Parameters: obj2 - argument for the formatter Parameters: obj3 - argument for the formatter Parameters: obj4 - argument for the formatter the formatted string |
getMessage | public String getMessage(String key, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5)(Code) | | Gets the formatted string with the given arguments
Parameters: key - the keystring on which to apply arguments Parameters: obj1 - argument for the formatter Parameters: obj2 - argument for the formatter Parameters: obj3 - argument for the formatter Parameters: obj4 - argument for the formatter Parameters: obj5 - argument for the formatter the formatted string |
getMessage | public String getMessage(String key, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6)(Code) | | Gets the formatted string with the given arguments
Parameters: key - the keystring on which to apply arguments Parameters: obj1 - argument for the formatter Parameters: obj2 - argument for the formatter Parameters: obj3 - argument for the formatter Parameters: obj4 - argument for the formatter Parameters: obj5 - argument for the formatter Parameters: obj6 - argument for the formatter the formatted string |
|
|