Package liquibase.ui
Class DefaultInputHandler<ReturnType>
- java.lang.Object
-
- liquibase.ui.DefaultInputHandler<ReturnType>
-
- All Implemented Interfaces:
InputHandler<ReturnType>
public class DefaultInputHandler<ReturnType> extends Object implements InputHandler<ReturnType>
Default input handler simply callsObjectUtil.convert(Object, Class)
-
-
Constructor Summary
Constructors Constructor Description DefaultInputHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IllegalArgumentException
addPrefixToExceptionMessage(IllegalArgumentException ex, String input)
ReturnType
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
-
-
-
-
Method Detail
-
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)
-
-