Package liquibase.ui
Class DefaultInputHandler<ReturnType>
java.lang.Object
liquibase.ui.DefaultInputHandler<ReturnType>
- All Implemented Interfaces:
InputHandler<ReturnType>
Default input handler simply calls
ObjectUtil.convert(Object, Class)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IllegalArgumentExceptionparseInput(String input, Class<ReturnType> returnType) Converts the given input into the correct return type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.ui.InputHandler
shouldAllowEmptyInput
-
Constructor Details
-
DefaultInputHandler
public DefaultInputHandler()
-
-
Method Details
-
parseInput
public ReturnType parseInput(String input, Class<ReturnType> returnType) throws IllegalArgumentException Description copied from interface:InputHandlerConverts the given input into the correct return type.- Specified by:
parseInputin interfaceInputHandler<ReturnType>- Throws:
IllegalArgumentException- if the input is not valid
-
addPrefixToExceptionMessage
protected IllegalArgumentException addPrefixToExceptionMessage(IllegalArgumentException ex, String input)
-