Enum Messages

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

      • Messages

        private Messages()
    • 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 name
        java.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 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 java.lang.String format​(java.lang.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.