Top Fields Constructors Methods
liquibase.util

public Class ValueHandlerUtil

extends Object
Class Inheritance
Imports
liquibase.Scope, liquibase.configuration.ConfigurationDefinition, java.util.Arrays

Field Summary

Modifier and TypeField and Description
public static String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Boolean
public static <T extends Enum<T>> T

Returns:

the enum value or null
getEnum
(Class<T>
the enum to use
enumClass
,
Object
the configuration input to search the enumClass
input
,
String
the name to report to the user if no valid enum values are found
parameterName
)

Get the valid enum value from a configuration parameter if possible.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ARGUMENT_KEYback to summary
public static String ARGUMENT_KEY

Constructor Detail

ValueHandlerUtilback to summary
public ValueHandlerUtil()

Method Detail

booleanValueHandlerback to summary
public static Boolean booleanValueHandler(Object input)
getEnumback to summary
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:Class<T>

the enum to use

input:Object

the configuration input to search the enumClass

parameterName:String

the name to report to the user if no valid enum values are found

Returns:T

the enum value or null