private void exploreClass ( Class < ? > clazzToAdd ) throws IntrospectionException { List < InnerPropertyDescriptor > classList = getProperties ( clazzToAdd ) ; for ( InnerPropertyDescriptor descriptor : classList ) { map . put ( descriptor . getName ( ) , descriptor ) ; } this . list . addAll ( classList ) ; Class < ? > superClazz = clazzToAdd . getSuperclass ( ) ; if ( superClazz != null ) { exploreClass ( superClazz ) ; } }
Add the proerties of this class and the parent class