Enum Class CliMessages

java.lang.Object
java.lang.Enum<CliMessages>
jenkins.plugins.jclouds.cli.CliMessages
All Implemented Interfaces:
Serializable, Comparable<CliMessages>, Constable, org.kohsuke.args4j.Localizable

public enum CliMessages extends Enum<CliMessages> implements org.kohsuke.args4j.Localizable
Defines localizeable messages for org.kohsuke.args4j.

Rant: This only exists, to satisfy org.kohsuke.args4j.CmdLineException and org.kohsuke.args4j.Localizable is incompatible with org.jvnet.localizer.Localizable.

Author:
Fritz Elfert
  • Enum Constant Details

    • AMBIGUOUS_TEMPLATE

      public static final CliMessages AMBIGUOUS_TEMPLATE
    • DELETED_CAUSE

      public static final CliMessages DELETED_CAUSE
    • INSTANCE_CAP_REACHED

      public static final CliMessages INSTANCE_CAP_REACHED
    • NO_SUCH_NODE_EXISTS

      public static final CliMessages NO_SUCH_NODE_EXISTS
    • NO_SUCH_PROFILE_EXISTS

      public static final CliMessages NO_SUCH_PROFILE_EXISTS
    • NO_SUCH_TEMPLATE_EXISTS

      public static final CliMessages NO_SUCH_TEMPLATE_EXISTS
    • NODE_NOT_FROM_JCLOUDS

      public static final CliMessages NODE_NOT_FROM_JCLOUDS
    • ONE_OFF_CAUSE

      public static final CliMessages ONE_OFF_CAUSE
  • Method Details

    • values

      public static CliMessages[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CliMessages valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • formatWithLocale

      public String formatWithLocale(Locale locale, Object... args)
      Specified by:
      formatWithLocale in interface org.kohsuke.args4j.Localizable
    • format

      public String format(Object... args)
      Specified by:
      format in interface org.kohsuke.args4j.Localizable
    • getText

      public String getText()