public abstract class GetterSetterPropertyDescriptor extends AbstractPropertyDescriptor
| Modifier and Type | Field and Description |
|---|---|
protected BeanContainer |
beanContainer |
protected DestBeanCreator |
destBeanCreator |
clazz, destDeepIndexHintContainer, fieldName, index, isIndexed, srcDeepIndexHintContainer| Constructor and Description |
|---|
GetterSetterPropertyDescriptor(Class<?> clazz,
String fieldName,
boolean isIndexed,
int index,
HintContainer srcDeepIndexHintContainer,
HintContainer destDeepIndexHintContainer,
BeanContainer beanContainer,
DestBeanCreator destBeanCreator) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
genericType()
Determines generic parameter type
|
Class<?> |
getPropertyType() |
Object |
getPropertyValue(Object bean) |
protected abstract Method |
getReadMethod() |
protected abstract String |
getSetMethodName() |
protected abstract Method |
getWriteMethod() |
Class<?> |
getWriteMethodPropertyType() |
protected Object |
invokeReadMethod(Object target) |
protected void |
invokeWriteMethod(Object target,
Object value) |
protected abstract boolean |
isCustomSetMethod() |
void |
setPropertyValue(Object bean,
Object value,
FieldMap fieldMap) |
protected void |
writeDeepDestinationValue(Object destObj,
Object destFieldValue,
FieldMap fieldMap) |
protected final BeanContainer beanContainer
protected final DestBeanCreator destBeanCreator
public GetterSetterPropertyDescriptor(Class<?> clazz, String fieldName, boolean isIndexed, int index, HintContainer srcDeepIndexHintContainer, HintContainer destDeepIndexHintContainer, BeanContainer beanContainer, DestBeanCreator destBeanCreator)
protected abstract Method getWriteMethod() throws NoSuchMethodException
NoSuchMethodExceptionprotected abstract Method getReadMethod() throws NoSuchMethodException
NoSuchMethodExceptionprotected abstract String getSetMethodName() throws NoSuchMethodException
NoSuchMethodExceptionprotected abstract boolean isCustomSetMethod()
public Class<?> getWriteMethodPropertyType()
public Class<?> getPropertyType()
protected void writeDeepDestinationValue(Object destObj, Object destFieldValue, FieldMap fieldMap)
public Class<?> genericType()
DozerPropertyDescriptorCopyright © 2005–2021 dozer. All rights reserved.