Package liquibase.command.core.init
Class EnumGetter<E extends Enum>
java.lang.Object
liquibase.command.core.init.AbstractCommandLineValueGetter<E>
liquibase.command.core.init.EnumGetter<E>
-
Field Summary
Fields inherited from class liquibase.command.core.init.AbstractCommandLineValueGetter
NEW_PARAMETER_VALUES_SCOPE_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGiven the raw input string from the user, convert it to the right type.static <T extends Enum>
TgetEnumIgnoreCase
(String name, Class<T> enumClass) boolean
Given the input from the user, after being converted, validate it.Methods inherited from class liquibase.command.core.init.AbstractCommandLineValueGetter
describe, prompt
-
Constructor Details
-
EnumGetter
-
-
Method Details
-
validate
Description copied from class:AbstractCommandLineValueGetter
Given the input from the user, after being converted, validate it.- Specified by:
validate
in classAbstractCommandLineValueGetter<E extends Enum>
- Returns:
- true if it is valid
-
convert
Description copied from class:AbstractCommandLineValueGetter
Given the raw input string from the user, convert it to the right type.- Specified by:
convert
in classAbstractCommandLineValueGetter<E extends Enum>
- Parameters:
input
- the raw input string from the prompt- Returns:
- the converted input
-
getEnumIgnoreCase
-