org.dozer.propertydescriptor
Class GetterSetterPropertyDescriptor
java.lang.Object
org.dozer.propertydescriptor.AbstractPropertyDescriptor
org.dozer.propertydescriptor.GetterSetterPropertyDescriptor
- All Implemented Interfaces:
- DozerPropertyDescriptor
- Direct Known Subclasses:
- JavaBeanPropertyDescriptor, MapPropertyDescriptor
public abstract class GetterSetterPropertyDescriptor
- extends AbstractPropertyDescriptor
Internal class used to read and write values for fields that have a getter and setter method. This class encapsulates
underlying dozer specific logic such as index mapping and deep mapping for reading and writing field values. Only
intended for internal use.
- Author:
- garsombke.franz, tierney.matt, dmitry.buzdin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetterSetterPropertyDescriptor
public GetterSetterPropertyDescriptor(Class<?> clazz,
String fieldName,
boolean isIndexed,
int index,
HintContainer srcDeepIndexHintContainer,
HintContainer destDeepIndexHintContainer)
getWriteMethod
public abstract Method getWriteMethod()
throws NoSuchMethodException
- Throws:
NoSuchMethodException
getReadMethod
protected abstract Method getReadMethod()
throws NoSuchMethodException
- Throws:
NoSuchMethodException
getSetMethodName
protected abstract String getSetMethodName()
throws NoSuchMethodException
- Throws:
NoSuchMethodException
isCustomSetMethod
protected abstract boolean isCustomSetMethod()
getPropertyType
public Class<?> getPropertyType()
getPropertyValue
public Object getPropertyValue(Object bean)
setPropertyValue
public void setPropertyValue(Object bean,
Object value,
FieldMap fieldMap)
writeDeepDestinationValue
protected void writeDeepDestinationValue(Object destObj,
Object destFieldValue,
FieldMap fieldMap)
invokeReadMethod
protected Object invokeReadMethod(Object target)
invokeWriteMethod
protected void invokeWriteMethod(Object target,
Object value)
genericType
public Class<?> genericType()
- Description copied from interface:
DozerPropertyDescriptor
- Determines generic parameter type
- Returns:
- For Type returns Parameter class.
Copyright © 2005-2011 dozer. All Rights Reserved.