Package org.kohsuke.args4j.spi
Enum Messages
- All Implemented Interfaces:
Serializable
,Comparable<Messages>
,java.lang.constant.Constable
,Localizable
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionFormat the implicitly given message bythis
object with the default locale.formatWithLocale
(Locale locale, Object... args) Format the implicitly given message bythis
object with the given locale.static Messages
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.
-
Enum Constant Details
-
ILLEGAL_OPERAND
-
ILLEGAL_CHAR
-
ILLEGAL_BOOLEAN
-
ILLEGAL_METHOD_SIGNATURE
-
ILLEGAL_FIELD_SIGNATURE
-
ILLEGAL_LIST
-
FORMAT_ERROR_FOR_MAP
-
MAP_HAS_NO_KEY
-
ILLEGAL_IP_ADDRESS
-
ILLEGAL_PATTERN
-
ILLEGAL_MAC_ADDRESS
-
ILLEGAL_UUID
-
ILLEGAL_PATH
-
DEFAULT_META_EXPLICIT_BOOLEAN_OPTION_HANDLER
-
DEFAULT_META_FILE_OPTION_HANDLER
-
DEFAULT_META_INET_ADDRESS_OPTION_HANDLER
-
DEFAULT_META_MAC_ADDRESS_OPTION_HANDLER
-
DEFAULT_META_PATH_OPTION_HANDLER
-
DEFAULT_META_PATTERN_OPTION_HANDLER
-
DEFAULT_META_REST_OF_ARGUMENTS_HANDLER
-
DEFAULT_META_STRING_ARRAY_OPTION_HANDLER
-
DEFAULT_META_STRING_OPTION_HANDLER
-
DEFAULT_META_SUB_COMMAND_HANDLER
-
DEFAULT_META_URI_OPTION_HANDLER
-
DEFAULT_META_URL_OPTION_HANDLER
-
DEFAULT_META_UUID_OPTION_HANDLER
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
formatWithLocale
Description copied from interface:Localizable
Format the implicitly given message bythis
object with the given locale.- Specified by:
formatWithLocale
in interfaceLocalizable
- 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
Description copied from interface:Localizable
Format the implicitly given message bythis
object with the default locale.- Specified by:
format
in interfaceLocalizable
- Parameters:
args
- the arguments to use for formatting. SeeMessageFormat.format(java.lang.String, java.lang.Object...)
.- Returns:
- the formatted string.
-