Interface InputPrompt

All Superinterfaces:
Prompt
All Known Subinterfaces:
NumberPrompt, PasswordPrompt
All Known Implementing Classes:
DefaultInputPrompt, DefaultNumberPrompt, DefaultPasswordPrompt

public interface InputPrompt extends Prompt
Interface for input prompts. An input prompt allows the user to enter text.
  • Method Details

    • getDefaultValue

      String getDefaultValue()
      Get the default value.
      Returns:
      the default value
    • getMask

      Character getMask()
      Get the mask character for the input.
      Returns:
      the mask character, or null if masking is disabled
    • getCompleter

      org.jline.reader.Completer getCompleter()
      Get the completer.
      Returns:
      the completer
    • getLineReader

      org.jline.reader.LineReader getLineReader()
      Get the line reader.
      Returns:
      the line reader
    • getValidator

      Function<String,Boolean> getValidator()
      Get the validator.
      Returns:
      the validator