Enum ManagerSetting

java.lang.Object
java.lang.Enum<ManagerSetting>
org.incendo.cloud.setting.ManagerSetting
All Implemented Interfaces:
Serializable, Comparable<ManagerSetting>, Setting

@API(status=STABLE) public enum ManagerSetting extends Enum<ManagerSetting> implements Setting
Configurable command related settings
See Also:
  • Enum Constant Details

    • FORCE_SUGGESTION

      public static final ManagerSetting FORCE_SUGGESTION
      Force sending of an empty suggestion (i.e. a singleton list containing an empty string) when no suggestions are present
    • ALLOW_UNSAFE_REGISTRATION

      @API(status=STABLE) public static final ManagerSetting ALLOW_UNSAFE_REGISTRATION
      Allow registering commands even when doing so has the potential to produce inconsistent results.

      For example, if a platform serializes the command tree and sends it to clients, this will allow modifying the command tree after it has been sent, as long as these modifications are not blocked by the underlying platform

    • OVERRIDE_EXISTING_COMMANDS

      @API(status=STABLE) public static final ManagerSetting OVERRIDE_EXISTING_COMMANDS
      Enables overriding of existing commands on supported platforms.
    • LIBERAL_FLAG_PARSING

      @API(status=EXPERIMENTAL) public static final ManagerSetting LIBERAL_FLAG_PARSING
      Allows parsing flags at any position after the last literal by appending flag argument nodes between each command node. It can have some conflicts when integrating with other command systems like Brigadier, and code inspecting the command tree may need to be adjusted.
  • Method Details

    • values

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