public String getLinkCopyText ( JSONObject jsonObject ) { if ( jsonObject == null ) return "" ; try { JSONObject copyObject = jsonObject . has ( "copyText" ) ? jsonObject . getJSONObject ( "copyText" ) : null ; if ( copyObject != null ) { return copyObject . has ( "text" ) ? copyObject . getString ( "text" ) : "" ; } else { return "" ; } } catch ( JSONException e ) { Logger . v ( "Unable to get Link Text with JSON - " + e . getLocalizedMessage ( ) ) ; return "" ; } }
Returns the text for the JSONObject of Link provided The JSONObject of Link provided should be of the type copy