public boolean fieldsToCheck ( Field destination , Field source ) { destinationName = destination . getName ( ) ; sourceName = source . getName ( ) ; if ( ! xml . conversionsLoad ( ) . isEmpty ( ) ) { configurationType = XML ; if ( config == DESTINATION ) { if ( existsXmlConversion ( destinationClass ) ) { membership = Membership . DESTINATION ; return true ; } if ( existsXmlConversion ( sourceClass ) ) { membership = Membership . SOURCE ; return true ; } } else { if ( existsXmlConversion ( sourceClass ) ) { membership = Membership . SOURCE ; return true ; } if ( existsXmlConversion ( destinationClass ) ) { membership = Membership . DESTINATION ; return true ; } } } configurationType = ANNOTATION ; if ( config == DESTINATION ) { if ( existsAnnotatedConversion ( destinationClass ) ) { membership = Membership . DESTINATION ; return true ; } if ( existsAnnotatedConversion ( sourceClass ) ) { membership = Membership . SOURCE ; return true ; } } else { if ( existsAnnotatedConversion ( sourceClass ) ) { membership = Membership . SOURCE ; return true ; } if ( existsAnnotatedConversion ( destinationClass ) ) { membership = Membership . DESTINATION ; return true ; } } return false ; }
Checks for the existence of a conversion method .