Top Description Methods
org.kohsuke.args4j

public Interface Localizable

Known Direct Implementers
org.kohsuke.args4j.Messages, org.kohsuke.args4j.spi.Messages
Imports
java.text.MessageFormat, java.util.Locale

A message that can be formatted with arguments and locale.

The message is implicitly given by this object and can contain formatting similar to the MessageFormat class.

Author
Stephan Fuhrmann
See Also
Messages, org.kohsuke.args4j.spi.Messages

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the formatted string.
format
(Object...
the arguments to use for formatting. See MessageFormat#format(java.lang.String, java.lang.Object...).
args
)

Format the implicitly given message by this object with the default locale.

public String

Returns:

the formatted string.
formatWithLocale
(Locale
the locale to use for formatting .
locale
,
Object...
the arguments to use for formatting. See MessageFormat#format(java.lang.String, java.lang.Object...).
args
)

Format the implicitly given message by this object with the given locale.

Method Detail

formatback to summary
public String format(Object... args)

Format the implicitly given message by this object with the default locale.

Parameters
args:Object[]

the arguments to use for formatting. See MessageFormat#format(java.lang.String, java.lang.Object...).

Returns:String

the formatted string.

formatWithLocaleback to summary
public String formatWithLocale(Locale locale, Object... args)

Format the implicitly given message by this object with the given locale.

Parameters
locale:Locale

the locale to use for formatting .

args:Object[]

the arguments to use for formatting. See MessageFormat#format(java.lang.String, java.lang.Object...).

Returns:String

the formatted string.