37 |
37 |
38 /** |
38 /** |
39 * Used to obtain a localized String representing the object accordingly |
39 * Used to obtain a localized String representing the object accordingly |
40 * to a given locale |
40 * to a given locale |
41 * |
41 * |
42 * @param bundle resource bundle class used for localization |
42 * @param locale locale in which the object's representation is to be rendered |
|
43 * @param messages messages object used for localization |
43 * @return a locale-dependent string representing the object |
44 * @return a locale-dependent string representing the object |
44 */ |
45 */ |
45 public String toString(ResourceBundle bundle); |
46 public String toString(Locale locale, Messages messages); |
46 /** |
47 /** |
47 * Retrieve a pretty name of this object's kind |
48 * Retrieve a pretty name of this object's kind |
48 * @return a string representing the object's kind |
49 * @return a string representing the object's kind |
49 */ |
50 */ |
50 String getKind(); |
51 String getKind(); |