void toStringParamValueOnly ( final StringBuilder buf ) { if ( value == null ) { buf . append ( "null" ) ; } else { final Object paramVal = value . get ( ) ; final Class < ? > valClass = paramVal . getClass ( ) ; if ( valClass . isArray ( ) ) { buf . append ( ' ' ) ; for ( int j = 0 , n = Array . getLength ( paramVal ) ; j < n ; j ++ ) { if ( j > 0 ) { buf . append ( ", " ) ; } final Object elt = Array . get ( paramVal , j ) ; buf . append ( elt == null ? "null" : elt . toString ( ) ) ; } buf . append ( ' ' ) ; } else if ( paramVal instanceof String ) { buf . append ( ' ' ) ; buf . append ( paramVal . toString ( ) . replace ( "\"" , "\\\"" ) . replace ( "\n" , "\\n" ) . replace ( "\r" , "\\r" ) ) ; buf . append ( ' ' ) ; } else if ( paramVal instanceof Character ) { buf . append ( ' ' ) ; buf . append ( paramVal . toString ( ) . replace ( "'" , "\\'" ) . replace ( "\n" , "\\n" ) . replace ( "\r" , "\\r" ) ) ; buf . append ( ' ' ) ; } else { buf . append ( paramVal . toString ( ) ) ; } } }
To string param value only .