public static String formatPropertyName ( final String value ) { String formattedValue = toUpperFirstChar ( value ) ; if ( ValidationUtil . isGolangKeyword ( formattedValue ) ) { final String keywordAppendToken = System . getProperty ( SbeTool . KEYWORD_APPEND_TOKEN ) ; if ( null == keywordAppendToken ) { throw new IllegalStateException ( "Invalid property name='" + formattedValue + "' please correct the schema or consider setting system property: " + SbeTool . KEYWORD_APPEND_TOKEN ) ; } formattedValue += keywordAppendToken ; } return formattedValue ; }
Format a String as a property name .