enum Messages extends java.lang.Enum<Messages> implements Localizable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.Object... args)
Format the implicitly given message by
this object with the default locale. |
java.lang.String |
formatWithLocale(java.util.Locale locale,
java.lang.Object... args)
Format the implicitly given message by
this object with the given locale. |
static Messages |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Messages[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Messages MISSING_OPERAND
public static final Messages UNDEFINED_OPTION
public static final Messages NO_ARGUMENT_ALLOWED
public static final Messages REQUIRED_OPTION_MISSING
public static final Messages TOO_MANY_ARGUMENTS
public static final Messages REQUIRED_ARGUMENT_MISSING
public static final Messages METADATA_ERROR
public static final Messages MULTIPLE_USE_OF_ARGUMENT
public static final Messages MULTIPLE_USE_OF_OPTION
public static final Messages UNKNOWN_HANDLER
public static final Messages NO_OPTIONHANDLER
public static final Messages NO_CONSTRUCTOR_ON_HANDLER
public static final Messages REQUIRES_OPTION_MISSING
public static final Messages FORBIDDEN_OPTION_PRESENT
public static final Messages NO_SUCH_FILE
public static final Messages DEFAULT_VALUE
public static Messages[] values()
for (Messages c : Messages.values()) System.out.println(c);
public static Messages valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String formatWithLocale(java.util.Locale locale, java.lang.Object... args)
Localizable
this
object with the given locale.formatWithLocale
in interface Localizable
locale
- the locale to use for formatting .args
- the arguments to use for formatting. See MessageFormat.format(java.lang.String, java.lang.Object...)
.public java.lang.String format(java.lang.Object... args)
Localizable
this
object with the default locale.format
in interface Localizable
args
- the arguments to use for formatting. See MessageFormat.format(java.lang.String, java.lang.Object...)
.