Package io.beanmapper.core.generics
Class DirectedBeanProperty
java.lang.Object
io.beanmapper.core.generics.DirectedBeanProperty
Knows the side of the BeanProperty (either source or target) and because of that knows how the property will be accessed. The way the property will be accessed, determines its property. For example:
- field; the type of the field determines the class
- setter; the first parameter type determines the class
- getter; the return type of the getter determines the class
Also keeps tracks of the bean field (ie, the member variable) if it exists, in order to allow it to be reused. This is needed for example for Hibernate collection reuse.
- Author:
- Robert Bor
-
Constructor Summary
ConstructorDescriptionDirectedBeanProperty(BeanPropertyMatchupDirection matchupDirection, PropertyAccessor accessor, Class containingClass)
-
Method Summary
-
Constructor Details
-
DirectedBeanProperty
public DirectedBeanProperty(BeanPropertyMatchupDirection matchupDirection, PropertyAccessor accessor, Class containingClass)
-
-
Method Details
-
getBeanPropertyClass
-
getBeanFieldClass
-
getGenericClassOfProperty
-
isBeanFieldAvailable
public boolean isBeanFieldAvailable()
-