org.dozer.propertydescriptor
Class JavaBeanPropertyDescriptor

java.lang.Object
  extended by org.dozer.propertydescriptor.AbstractPropertyDescriptor
      extended by org.dozer.propertydescriptor.GetterSetterPropertyDescriptor
          extended by 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

Field Summary
 
Fields inherited from class org.dozer.propertydescriptor.AbstractPropertyDescriptor
clazz, destDeepIndexHintContainer, fieldName, index, isIndexed, srcDeepIndexHintContainer
 
Constructor Summary
JavaBeanPropertyDescriptor(Class<?> clazz, String fieldName, boolean isIndexed, int index, HintContainer srcDeepIndexHintContainer, HintContainer destDeepIndexHintContainer)
           
 
Method Summary
protected  Method getReadMethod()
           
protected  String getSetMethodName()
           
 Method getWriteMethod()
           
protected  boolean isCustomSetMethod()
           
 
Methods inherited from class org.dozer.propertydescriptor.GetterSetterPropertyDescriptor
genericType, getPropertyType, getPropertyValue, invokeReadMethod, invokeWriteMethod, setPropertyValue, writeDeepDestinationValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaBeanPropertyDescriptor

public JavaBeanPropertyDescriptor(Class<?> clazz,
                                  String fieldName,
                                  boolean isIndexed,
                                  int index,
                                  HintContainer srcDeepIndexHintContainer,
                                  HintContainer destDeepIndexHintContainer)
Method Detail

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.