org.omnaest.utils.beans.mapconverter
Interface BeanToNestedMapConverter.BeanConversionFilter
- Type Parameters:
B -
- All Known Implementing Classes:
- BeanToNestedMapConverter.BeanConversionFilterExcludingDeclaringJavaBaseClass, BeanToNestedMapConverter.BeanConversionFilterExcludingJavaBaseClass, BeanToNestedMapConverter.BeanConversionFilterExcludingPrimitiveAndString
- Enclosing class:
- BeanToNestedMapConverter<B>
public static interface BeanToNestedMapConverter.BeanConversionFilter
A BeanToNestedMapConverter.BeanConversionFilter will decide which JavaBean should be converted into a Map and which should be put
directly into the Map as Object
- Author:
- Omnaest
hasBeanToBeConverted
boolean hasBeanToBeConverted(Class<?> declaringType,
Object bean)
- Returns true, if a given JavaBean should be converted to a
Map
- Parameters:
declaringType - : type which is declared by the referencing property (this can be for example an interface or any supertype of the
actual incoming bean object)bean - : the actual bean to be converted
- Returns:
Copyright © 2013. All Rights Reserved.