Package liquibase.ui
Interface InputHandler<ReturnType>
-
- All Known Implementing Classes:
DefaultInputHandler
public interface InputHandler<ReturnType>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ReturnType
parseInput(String input, Class<ReturnType> returnType)
Converts the given input into the correct return type.default boolean
shouldAllowEmptyInput()
Determine whether an empty input should be permitted.
-
-
-
Method Detail
-
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
-
-