Package org.kohsuke.args4j
Enum Messages
- java.lang.Object
-
- java.lang.Enum<Messages>
-
- org.kohsuke.args4j.Messages
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Messages>
,Localizable
enum Messages extends java.lang.Enum<Messages> implements Localizable
-
-
Enum Constant Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
Messages()
-
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
-
MISSING_OPERAND
public static final Messages MISSING_OPERAND
-
UNDEFINED_OPTION
public static final Messages UNDEFINED_OPTION
-
NO_ARGUMENT_ALLOWED
public static final Messages NO_ARGUMENT_ALLOWED
-
REQUIRED_OPTION_MISSING
public static final Messages REQUIRED_OPTION_MISSING
-
TOO_MANY_ARGUMENTS
public static final Messages TOO_MANY_ARGUMENTS
-
REQUIRED_ARGUMENT_MISSING
public static final Messages REQUIRED_ARGUMENT_MISSING
-
METADATA_ERROR
public static final Messages METADATA_ERROR
-
MULTIPLE_USE_OF_ARGUMENT
public static final Messages MULTIPLE_USE_OF_ARGUMENT
-
MULTIPLE_USE_OF_OPTION
public static final Messages MULTIPLE_USE_OF_OPTION
-
UNKNOWN_HANDLER
public static final Messages UNKNOWN_HANDLER
-
NO_OPTIONHANDLER
public static final Messages NO_OPTIONHANDLER
-
NO_CONSTRUCTOR_ON_HANDLER
public static final Messages NO_CONSTRUCTOR_ON_HANDLER
-
REQUIRES_OPTION_MISSING
public static final Messages REQUIRES_OPTION_MISSING
-
FORBIDDEN_OPTION_PRESENT
public static final Messages FORBIDDEN_OPTION_PRESENT
-
NO_SUCH_FILE
public static final Messages NO_SUCH_FILE
-
DEFAULT_VALUE
public static final Messages DEFAULT_VALUE
-
-
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.
-
-