Enum Messages

java.lang.Object
java.lang.Enum<Messages>
org.kohsuke.args4j.Messages
All Implemented Interfaces:
Serializable, Comparable<Messages>, Localizable

enum Messages extends Enum<Messages> implements Localizable
  • Enum Constant Details

    • 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
  • Constructor Details

    • Messages

      private Messages()
  • Method Details

    • values

      public static Messages[] 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

      public static Messages valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • formatWithLocale

      public String formatWithLocale(Locale locale, Object... args)
      Description copied from interface: Localizable
      Format the implicitly given message by this object with the given locale.
      Specified by:
      formatWithLocale in interface Localizable
      Parameters:
      locale - the locale to use for formatting .
      args - the arguments to use for formatting. See MessageFormat.format(java.lang.String, java.lang.Object...).
      Returns:
      the formatted string.
    • format

      public String format(Object... args)
      Description copied from interface: Localizable
      Format the implicitly given message by this object with the default locale.
      Specified by:
      format in interface Localizable
      Parameters:
      args - the arguments to use for formatting. See MessageFormat.format(java.lang.String, java.lang.Object...).
      Returns:
      the formatted string.