public static String mapperClassName ( Class < ? > destination , Class < ? > source , String resource ) { String className = destination . getName ( ) . replaceAll ( "\\." , "" ) + source . getName ( ) . replaceAll ( "\\." , "" ) ; if ( isEmpty ( resource ) ) return className ; if ( ! isPath ( resource ) ) return write ( className , String . valueOf ( resource . hashCode ( ) ) ) ; String [ ] dep = resource . split ( "\\\\" ) ; if ( dep . length <= 1 ) dep = resource . split ( "/" ) ; String xml = dep [ dep . length - 1 ] ; return write ( className , xml . replaceAll ( "\\." , "" ) . replaceAll ( " " , "" ) ) ; }
Returns the name of mapper that identifies the destination and source classes .