All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.ui.InputHandler Maven / Gradle / Ivy

There is a newer version: 4.30.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy