private boolean isConvertable ( Mapping mapping ) { if ( mapping == null || mapping . getProvider ( ) != null || ! ( mapping instanceof PropertyMapping ) ) return false ; PropertyMapping propertyMapping = ( PropertyMapping ) mapping ; boolean hasSupportConverter = converterStore . getFirstSupported ( propertyMapping . getLastSourceProperty ( ) . getType ( ) , mapping . getLastDestinationProperty ( ) . getType ( ) ) != null ; boolean hasSupportTypeMap = typeMapStore . get ( propertyMapping . getLastSourceProperty ( ) . getType ( ) , mapping . getLastDestinationProperty ( ) . getType ( ) , null ) != null ; return hasSupportConverter || hasSupportTypeMap ; }
Indicates whether the mapping represents a PropertyMapping that is convertible to the destination type .