private static String getColumnTitle ( final PropertyDescriptor _property ) { final StringBuilder buffer = new StringBuilder ( ) ; final String name = _property . getName ( ) ; buffer . append ( Character . toUpperCase ( name . charAt ( 0 ) ) ) ; for ( int i = 1 ; i < name . length ( ) ; i ++ ) { final char c = name . charAt ( i ) ; if ( Character . isUpperCase ( c ) ) { buffer . append ( ' ' ) ; } buffer . append ( c ) ; } return buffer . toString ( ) ; }
Calculates a column title using camel humps to separate words .