public static String getClassNameRepresentation ( String name ) { if ( name == null || name . length ( ) == 0 ) { return "" ; } StringBuilder buf = new StringBuilder ( ) ; String [ ] tokens = name . split ( "[^\\w\\d]" ) ; for ( String token1 : tokens ) { String token = token1 . trim ( ) ; int length = token . length ( ) ; if ( length > 0 ) { buf . append ( token . substring ( 0 , 1 ) . toUpperCase ( Locale . ENGLISH ) ) ; if ( length > 1 ) { buf . append ( token . substring ( 1 ) ) ; } } } return buf . toString ( ) ; }
Returns the class name representation of the given name .