public enum Messages extends Enum<Messages> implements Localizable
Modifier and Type | Method and Description |
---|---|
String |
format(Object... args)
Format the implicitly given message by
this object with the default locale. |
String |
formatWithLocale(Locale locale,
Object... args)
Format the implicitly given message by
this object with the given locale. |
static Messages |
valueOf(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 ILLEGAL_OPERAND
public static final Messages ILLEGAL_CHAR
public static final Messages ILLEGAL_BOOLEAN
public static final Messages ILLEGAL_METHOD_SIGNATURE
public static final Messages ILLEGAL_FIELD_SIGNATURE
public static final Messages ILLEGAL_LIST
public static final Messages FORMAT_ERROR_FOR_MAP
public static final Messages MAP_HAS_NO_KEY
public static final Messages ILLEGAL_IP_ADDRESS
public static final Messages ILLEGAL_PATTERN
public static final Messages ILLEGAL_MAC_ADDRESS
public static final Messages ILLEGAL_UUID
public static final Messages ILLEGAL_PATH
public static final Messages DEFAULT_META_EXPLICIT_BOOLEAN_OPTION_HANDLER
public static final Messages DEFAULT_META_FILE_OPTION_HANDLER
public static final Messages DEFAULT_META_INET_ADDRESS_OPTION_HANDLER
public static final Messages DEFAULT_META_MAC_ADDRESS_OPTION_HANDLER
public static final Messages DEFAULT_META_PATH_OPTION_HANDLER
public static final Messages DEFAULT_META_PATTERN_OPTION_HANDLER
public static final Messages DEFAULT_META_REST_OF_ARGUMENTS_HANDLER
public static final Messages DEFAULT_META_STRING_ARRAY_OPTION_HANDLER
public static final Messages DEFAULT_META_STRING_OPTION_HANDLER
public static final Messages DEFAULT_META_SUB_COMMAND_HANDLER
public static final Messages DEFAULT_META_URI_OPTION_HANDLER
public static final Messages DEFAULT_META_URL_OPTION_HANDLER
public static final Messages DEFAULT_META_UUID_OPTION_HANDLER
public static Messages[] values()
for (Messages c : Messages.values()) System.out.println(c);
public static Messages valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String formatWithLocale(Locale locale, 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 String format(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...)
.Copyright © 2003-2016 Kohsuke Kawaguchi. All Rights Reserved.