Package liquibase.util
Class ValueHandlerUtil
java.lang.Object
liquibase.util.ValueHandlerUtil
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ValueHandlerUtil
public ValueHandlerUtil()
-
-
Method Details
-
getIntegerWithConstraints
public static Integer getIntegerWithConstraints(Object input, String errorMessage, List<Integer> validValues) Get an integer entry, with constraints.- Parameters:
input
- the user supplied inputerrorMessage
- the error message that should be returned if none of the valid values match. This message should end with the string "one of the allowed values: ", because the allowed values will be appended to this error message before it is used.validValues
- the permissible values for the input
-