Package liquibase.ui

Interface InputHandler<ReturnType>

All Known Implementing Classes:
DefaultInputHandler

public interface InputHandler<ReturnType>
  • Method Summary

    Modifier and Type
    Method
    Description
    parseInput(String input, Class<ReturnType> returnType)
    Converts the given input into the correct return type.
    default boolean
    Determine whether an empty input should be permitted.
  • Method Details

    • parseInput

      ReturnType parseInput(String input, Class<ReturnType> returnType) throws IllegalArgumentException
      Converts the given input into the correct return type.
      Throws:
      IllegalArgumentException - if the input is not valid
    • shouldAllowEmptyInput

      default boolean shouldAllowEmptyInput()
      Determine whether an empty input should be permitted.
      Returns:
      true to allow empty inputs, false to reprompt when an empty value is inputted