Enum Messages
- All Implemented Interfaces:
Serializable, Comparable<Messages>, Localizable
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFormat the implicitly given message bythisobject with the default locale.formatWithLocale(Locale locale, Object... args) Format the implicitly given message bythisobject with the given locale.static MessagesReturns 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
-
MISSING_OPERAND
-
UNDEFINED_OPTION
-
NO_ARGUMENT_ALLOWED
-
REQUIRED_OPTION_MISSING
-
TOO_MANY_ARGUMENTS
-
REQUIRED_ARGUMENT_MISSING
-
METADATA_ERROR
-
MULTIPLE_USE_OF_ARGUMENT
-
MULTIPLE_USE_OF_OPTION
-
UNKNOWN_HANDLER
-
NO_OPTIONHANDLER
-
NO_CONSTRUCTOR_ON_HANDLER
-
REQUIRES_OPTION_MISSING
-
FORBIDDEN_OPTION_PRESENT
-
NO_SUCH_FILE
-
DEFAULT_VALUE
-
-
Constructor Details
-
Messages
private Messages()
-
-
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:LocalizableFormat the implicitly given message bythisobject with the given locale.- Specified by:
formatWithLocalein 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:LocalizableFormat the implicitly given message bythisobject with the default locale.- Specified by:
formatin interfaceLocalizable- Parameters:
args- the arguments to use for formatting. SeeMessageFormat.format(java.lang.String, java.lang.Object...).- Returns:
- the formatted string.
-