Enum ShellCompletionCommand.Shell

java.lang.Object
java.lang.Enum<ShellCompletionCommand.Shell>
dev.metaschema.cli.processor.command.ShellCompletionCommand.Shell
All Implemented Interfaces:
Serializable, Comparable<ShellCompletionCommand.Shell>
Enclosing class:
ShellCompletionCommand

public static enum ShellCompletionCommand.Shell extends Enum<ShellCompletionCommand.Shell>
Supported shell types.
  • Enum Constant Details

  • Method Details

    • values

      public static ShellCompletionCommand.Shell[] 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 ShellCompletionCommand.Shell 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
    • getName

      @NonNull public String getName()
      Get the shell name.
      Returns:
      the name
    • fromString

      @NonNull public static ShellCompletionCommand.Shell fromString(@NonNull String value)
      Parse a shell type from a string.
      Parameters:
      value - the string value to parse
      Returns:
      the shell type
      Throws:
      IllegalArgumentException - if the value is not a recognized shell type