org.dozer.propertydescriptor
Class CustomGetSetPropertyDescriptor

java.lang.Object
  extended by org.dozer.propertydescriptor.AbstractPropertyDescriptor
      extended by org.dozer.propertydescriptor.GetterSetterPropertyDescriptor
          extended by org.dozer.propertydescriptor.JavaBeanPropertyDescriptor
              extended by org.dozer.propertydescriptor.CustomGetSetPropertyDescriptor
All Implemented Interfaces:
DozerPropertyDescriptor

public class CustomGetSetPropertyDescriptor
extends JavaBeanPropertyDescriptor

Internal class used to read and write values for fields that have an explicitly specified getter or setter method. 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
CustomGetSetPropertyDescriptor(Class<?> clazz, String fieldName, boolean isIndexed, int index, String customSetMethod, String customGetMethod, 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

CustomGetSetPropertyDescriptor

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

getWriteMethod

public Method getWriteMethod()
                      throws NoSuchMethodException
Overrides:
getWriteMethod in class JavaBeanPropertyDescriptor
Throws:
NoSuchMethodException

getReadMethod

protected Method getReadMethod()
                        throws NoSuchMethodException
Overrides:
getReadMethod in class JavaBeanPropertyDescriptor
Throws:
NoSuchMethodException

getSetMethodName

protected String getSetMethodName()
                           throws NoSuchMethodException
Overrides:
getSetMethodName in class JavaBeanPropertyDescriptor
Throws:
NoSuchMethodException

isCustomSetMethod

protected boolean isCustomSetMethod()
Overrides:
isCustomSetMethod in class JavaBeanPropertyDescriptor


Copyright © 2005-2011 dozer. All Rights Reserved.