public static String getLogicalName ( String name , String trailingName ) { if ( isBlank ( trailingName ) ) { return name ; } String shortName = getShortName ( name ) ; if ( shortName . indexOf ( trailingName ) == - 1 ) { return name ; } return shortName . substring ( 0 , shortName . length ( ) - trailingName . length ( ) ) ; }
Retrieves the logical name of the class without the trailing name .