Package org.kohsuke.args4j
Interface Localizable
-
- All Known Implementing Classes:
Messages
public interface Localizable
A message that can be formatted with arguments and locale.The message is implicitly given by
this
object and can contain formatting similar to theMessageFormat
class.- Author:
- Stephan Fuhrmann
- See Also:
Messages
,Messages
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
format(Object... args)
Format the implicitly given message bythis
object with the default locale.String
formatWithLocale(Locale locale, Object... args)
Format the implicitly given message bythis
object with the given locale.
-
-
-
Method Detail
-
formatWithLocale
String formatWithLocale(Locale locale, Object... args)
Format the implicitly given message bythis
object with the given locale.- Parameters:
locale
- the locale to use for formatting .args
- the arguments to use for formatting. SeeMessageFormat.format(java.lang.String, java.lang.Object...)
.- Returns:
- the formatted string.
-
format
String format(Object... args)
Format the implicitly given message bythis
object with the default locale.- Parameters:
args
- the arguments to use for formatting. SeeMessageFormat.format(java.lang.String, java.lang.Object...)
.- Returns:
- the formatted string.
-
-