Class JavaBeanPropertyDescriptor
- java.lang.Object
-
- com.github.dozermapper.core.propertydescriptor.AbstractPropertyDescriptor
-
- com.github.dozermapper.core.propertydescriptor.GetterSetterPropertyDescriptor
-
- com.github.dozermapper.core.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.
-
-
Field Summary
-
Fields inherited from class com.github.dozermapper.core.propertydescriptor.GetterSetterPropertyDescriptor
beanContainer, destBeanCreator
-
Fields inherited from class com.github.dozermapper.core.propertydescriptor.AbstractPropertyDescriptor
clazz, destDeepIndexHintContainer, fieldName, index, isIndexed, srcDeepIndexHintContainer
-
-
Constructor Summary
Constructors Constructor Description JavaBeanPropertyDescriptor(Class<?> clazz, String fieldName, boolean isIndexed, int index, HintContainer srcDeepIndexHintContainer, HintContainer destDeepIndexHintContainer, BeanContainer beanContainer, DestBeanCreator destBeanCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MethodgetReadMethod()protected StringgetSetMethodName()MethodgetWriteMethod()protected booleanisCustomSetMethod()-
Methods inherited from class com.github.dozermapper.core.propertydescriptor.GetterSetterPropertyDescriptor
genericType, getPropertyType, getPropertyValue, getWriteMethodPropertyType, invokeReadMethod, invokeWriteMethod, setPropertyValue, writeDeepDestinationValue
-
-
-
-
Constructor Detail
-
JavaBeanPropertyDescriptor
public JavaBeanPropertyDescriptor(Class<?> clazz, String fieldName, boolean isIndexed, int index, HintContainer srcDeepIndexHintContainer, HintContainer destDeepIndexHintContainer, BeanContainer beanContainer, DestBeanCreator destBeanCreator)
-
-
Method Detail
-
getWriteMethod
public Method getWriteMethod() throws NoSuchMethodException
- Specified by:
getWriteMethodin classGetterSetterPropertyDescriptor- Throws:
NoSuchMethodException
-
getSetMethodName
protected String getSetMethodName() throws NoSuchMethodException
- Specified by:
getSetMethodNamein classGetterSetterPropertyDescriptor- Throws:
NoSuchMethodException
-
getReadMethod
protected Method getReadMethod() throws NoSuchMethodException
- Specified by:
getReadMethodin classGetterSetterPropertyDescriptor- Throws:
NoSuchMethodException
-
isCustomSetMethod
protected boolean isCustomSetMethod()
- Specified by:
isCustomSetMethodin classGetterSetterPropertyDescriptor
-
-