Package org.kohsuke.args4j.spi
Enum Messages
- java.lang.Object
-
- java.lang.Enum<Messages>
-
- org.kohsuke.args4j.spi.Messages
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Messages>
,Localizable
public enum Messages extends java.lang.Enum<Messages> implements Localizable
- Author:
- Kohsuke Kawaguchi
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(java.lang.Object... args)
Format the implicitly given message bythis
object with the default locale.java.lang.String
formatWithLocale(java.util.Locale locale, java.lang.Object... args)
Format the implicitly given message bythis
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.
-
-
-
Enum Constant Detail
-
ILLEGAL_OPERAND
public static final Messages ILLEGAL_OPERAND
-
ILLEGAL_CHAR
public static final Messages ILLEGAL_CHAR
-
ILLEGAL_BOOLEAN
public static final Messages ILLEGAL_BOOLEAN
-
ILLEGAL_METHOD_SIGNATURE
public static final Messages ILLEGAL_METHOD_SIGNATURE
-
ILLEGAL_FIELD_SIGNATURE
public static final Messages ILLEGAL_FIELD_SIGNATURE
-
ILLEGAL_LIST
public static final Messages ILLEGAL_LIST
-
FORMAT_ERROR_FOR_MAP
public static final Messages FORMAT_ERROR_FOR_MAP
-
MAP_HAS_NO_KEY
public static final Messages MAP_HAS_NO_KEY
-
ILLEGAL_IP_ADDRESS
public static final Messages ILLEGAL_IP_ADDRESS
-
ILLEGAL_PATTERN
public static final Messages ILLEGAL_PATTERN
-
ILLEGAL_MAC_ADDRESS
public static final Messages ILLEGAL_MAC_ADDRESS
-
ILLEGAL_UUID
public static final Messages ILLEGAL_UUID
-
ILLEGAL_PATH
public static final Messages ILLEGAL_PATH
-
DEFAULT_META_EXPLICIT_BOOLEAN_OPTION_HANDLER
public static final Messages DEFAULT_META_EXPLICIT_BOOLEAN_OPTION_HANDLER
-
DEFAULT_META_FILE_OPTION_HANDLER
public static final Messages DEFAULT_META_FILE_OPTION_HANDLER
-
DEFAULT_META_INET_ADDRESS_OPTION_HANDLER
public static final Messages DEFAULT_META_INET_ADDRESS_OPTION_HANDLER
-
DEFAULT_META_MAC_ADDRESS_OPTION_HANDLER
public static final Messages DEFAULT_META_MAC_ADDRESS_OPTION_HANDLER
-
DEFAULT_META_PATH_OPTION_HANDLER
public static final Messages DEFAULT_META_PATH_OPTION_HANDLER
-
DEFAULT_META_PATTERN_OPTION_HANDLER
public static final Messages DEFAULT_META_PATTERN_OPTION_HANDLER
-
DEFAULT_META_REST_OF_ARGUMENTS_HANDLER
public static final Messages DEFAULT_META_REST_OF_ARGUMENTS_HANDLER
-
DEFAULT_META_STRING_ARRAY_OPTION_HANDLER
public static final Messages DEFAULT_META_STRING_ARRAY_OPTION_HANDLER
-
DEFAULT_META_STRING_OPTION_HANDLER
public static final Messages DEFAULT_META_STRING_OPTION_HANDLER
-
DEFAULT_META_SUB_COMMAND_HANDLER
public static final Messages DEFAULT_META_SUB_COMMAND_HANDLER
-
DEFAULT_META_URI_OPTION_HANDLER
public static final Messages DEFAULT_META_URI_OPTION_HANDLER
-
DEFAULT_META_URL_OPTION_HANDLER
public static final Messages DEFAULT_META_URL_OPTION_HANDLER
-
DEFAULT_META_UUID_OPTION_HANDLER
public static final Messages DEFAULT_META_UUID_OPTION_HANDLER
-
-
Method Detail
-
values
public static Messages[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Messages c : Messages.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Messages valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
formatWithLocale
public java.lang.String formatWithLocale(java.util.Locale locale, java.lang.Object... args)
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
public java.lang.String format(java.lang.Object... args)
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.
-
-