Class DirectedBeanProperty

java.lang.Object
io.beanmapper.core.generics.DirectedBeanProperty

public class DirectedBeanProperty extends Object

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 Details

  • Method Details

    • getBeanPropertyClass

      public BeanPropertyClass getBeanPropertyClass()
    • getBeanFieldClass

      public BeanPropertyClass getBeanFieldClass()
    • getGenericClassOfProperty

      public Class<?> getGenericClassOfProperty(int index)
    • isBeanFieldAvailable

      public boolean isBeanFieldAvailable()