org.dozer.propertydescriptor
Class JavaBeanPropertyDescriptor
java.lang.Object
org.dozer.propertydescriptor.AbstractPropertyDescriptor
org.dozer.propertydescriptor.GetterSetterPropertyDescriptor
org.dozer.propertydescriptor.JavaBeanPropertyDescriptor
- All Implemented Interfaces:
- DozerPropertyDescriptor
- Direct Known Subclasses:
- CustomGetSetPropertyDescriptor
public class JavaBeanPropertyDescriptor
- extends GetterSetterPropertyDescriptor
Internal class used to read and write values for fields that follow the java bean spec and have corresponding
getter/setter methods for the field that are name accordingly. If the field does not have the necessary
getter/setter, an exception will be thrown. Only intended for internal use.
- Author:
- garsombke.franz, tierney.matt
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaBeanPropertyDescriptor
public JavaBeanPropertyDescriptor(Class<?> clazz,
String fieldName,
boolean isIndexed,
int index,
HintContainer srcDeepIndexHintContainer,
HintContainer destDeepIndexHintContainer)
getWriteMethod
public Method getWriteMethod()
throws NoSuchMethodException
- Specified by:
getWriteMethod in class GetterSetterPropertyDescriptor
- Throws:
NoSuchMethodException
getSetMethodName
protected String getSetMethodName()
throws NoSuchMethodException
- Specified by:
getSetMethodName in class GetterSetterPropertyDescriptor
- Throws:
NoSuchMethodException
getReadMethod
protected Method getReadMethod()
throws NoSuchMethodException
- Specified by:
getReadMethod in class GetterSetterPropertyDescriptor
- Throws:
NoSuchMethodException
isCustomSetMethod
protected boolean isCustomSetMethod()
- Specified by:
isCustomSetMethod in class GetterSetterPropertyDescriptor
Copyright © 2005-2011 dozer. All Rights Reserved.