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
-
Method Summary
Modifier and TypeMethodDescriptionprotected IllegalArgumentException
parseInput
(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, wait
Methods 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:InputHandler
Converts the given input into the correct return type.- Specified by:
parseInput
in interfaceInputHandler<ReturnType>
- Throws:
IllegalArgumentException
- if the input is not valid
-
addPrefixToExceptionMessage
protected IllegalArgumentException addPrefixToExceptionMessage(IllegalArgumentException ex, String input)
-