Package liquibase.util
Class ValueHandlerUtil
- java.lang.Object
-
- liquibase.util.ValueHandlerUtil
-
public class ValueHandlerUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ValueHandlerUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BooleanbooleanValueHandler(Object input)static <T extends Enum<T>>
TgetEnum(Class<T> enumClass, Object input, String parameterName)Get the valid enum value from a configuration parameter if possible.
-
-
-
Method Detail
-
getEnum
public static <T extends Enum<T>> T getEnum(Class<T> enumClass, Object input, String parameterName)
Get the valid enum value from a configuration parameter if possible.- Parameters:
enumClass- the enum to useinput- the configuration input to search the enumClassparameterName- the name to report to the user if no valid enum values are found- Returns:
- the enum value or null
-
-