String () { if (myAttributes == null || myAttributes.isEmpty()) return ""; StringBuilder buffer = new StringBuilder(); buffer.append('('); for (GrAnnotationNameValuePair attribute : myAttributes) { buffer.append(attribute.getText()); buffer.append(','); } buffer.deleteCharAt(buffer.length() - 1); buffer.append(')'); return buffer.toString(); }