public static String getClassName ( String logicalName , String trailingName ) { if ( isBlank ( logicalName ) ) { throw new IllegalArgumentException ( "Argument [logicalName] cannot be null or blank" ) ; } String className = logicalName . substring ( 0 , 1 ) . toUpperCase ( Locale . ENGLISH ) + logicalName . substring ( 1 ) ; if ( trailingName != null ) { className = className + trailingName ; } return className ; }
Returns the class name for the given logical name and trailing name . For example person and Controller would evaluate to PersonController .