liquibase.ui.InputHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.ui;
public interface InputHandler {
/**
* Converts the given input into the correct return type.
* @throws IllegalArgumentException if the input is not valid
*/
ReturnType parseInput(String input, Class returnType) throws IllegalArgumentException;
/**
* Determine whether an empty input should be permitted.
* @return true to allow empty inputs, false to reprompt when an empty value is inputted
*/
default boolean shouldAllowEmptyInput(){
return true;
}
}