public class MapPropertyDescriptor extends GetterSetterPropertyDescriptor
Overloaded methods are supported. Map class can have two set methods with different signatures, but class will choose the one with appropriate number of parameters.
Only intended for internal use.
beanContainer, destBeanCreatorclazz, destDeepIndexHintContainer, fieldName, index, isIndexed, srcDeepIndexHintContainer| Constructor and Description |
|---|
MapPropertyDescriptor(Class<?> clazz,
String fieldName,
boolean isIndexed,
int index,
String setMethod,
String getMethod,
String key,
HintContainer srcDeepIndexHintContainer,
HintContainer destDeepIndexHintContainer,
BeanContainer beanContainer,
DestBeanCreator destBeanCreator) |
| Modifier and Type | Method and Description |
|---|---|
protected Method |
getReadMethod() |
protected String |
getSetMethodName() |
Method |
getWriteMethod() |
protected Object |
invokeReadMethod(Object target) |
protected void |
invokeWriteMethod(Object target,
Object value) |
protected boolean |
isCustomSetMethod() |
void |
setPropertyValue(Object bean,
Object value,
FieldMap fieldMap) |
genericType, getPropertyType, getPropertyValue, getWriteMethodPropertyType, writeDeepDestinationValuepublic MapPropertyDescriptor(Class<?> clazz, String fieldName, boolean isIndexed, int index, String setMethod, String getMethod, String key, HintContainer srcDeepIndexHintContainer, HintContainer destDeepIndexHintContainer, BeanContainer beanContainer, DestBeanCreator destBeanCreator)
public Method getWriteMethod()
getWriteMethod in class GetterSetterPropertyDescriptorpublic void setPropertyValue(Object bean, Object value, FieldMap fieldMap)
setPropertyValue in interface DozerPropertyDescriptorsetPropertyValue in class GetterSetterPropertyDescriptorprotected Method getReadMethod()
getReadMethod in class GetterSetterPropertyDescriptorprotected String getSetMethodName()
getSetMethodName in class GetterSetterPropertyDescriptorprotected boolean isCustomSetMethod()
isCustomSetMethod in class GetterSetterPropertyDescriptorprotected void invokeWriteMethod(Object target, Object value)
invokeWriteMethod in class GetterSetterPropertyDescriptorprotected Object invokeReadMethod(Object target)
invokeReadMethod in class GetterSetterPropertyDescriptorCopyright © 2005–2021 dozer. All rights reserved.