public class BeanField extends Object
| Constructor and Description |
|---|
BeanField(Field field,
boolean required) |
| Modifier and Type | Method and Description |
|---|---|
Field |
getField() |
boolean |
isRequired() |
<T> void |
setFieldValue(T bean,
String value) |
public BeanField(Field field, boolean required)
field - - A java.lang.reflect.Field object.required - - true if the field is required to contain a value, false if it is allowed to be null or blank String.public boolean isRequired()
public <T> void setFieldValue(T bean,
String value)
throws IllegalAccessException
T - - Type of the bean.bean - - Object containing the field to be set.value - - String containing the value to set the field to.IllegalAccessException - - Thrown on reflection error.Copyright © 2019 Liquibase.org. All rights reserved.