Ejemplo n.º 1
0
 @Override
 public String toString() {
   StringBuffer buffer = new StringBuffer();
   buffer.append("API problem: "); // $NON-NLS-1$
   buffer
       .append(fResourcePath != null ? fResourcePath : "no path")
       .append("\n"); // $NON-NLS-1$//$NON-NLS-2$
   buffer.append("\tseverity: "); // $NON-NLS-1$
   buffer.append(Util.getSeverity(getSeverity())).append("\n"); // $NON-NLS-1$
   buffer.append("\tcategory: "); // $NON-NLS-1$
   buffer.append(ApiProblem.getProblemCategory(getCategory())).append("\n"); // $NON-NLS-1$
   buffer.append("\telement kind: "); // $NON-NLS-1$
   buffer
       .append(ApiProblem.getProblemElementKind(getCategory(), getElementKind()))
       .append("\n"); // $NON-NLS-1$
   buffer.append("\tkind: "); // $NON-NLS-1$
   buffer.append(ApiProblem.getProblemKind(getCategory(), getKind())).append("\n"); // $NON-NLS-1$
   buffer.append("\tflags: "); // $NON-NLS-1$
   buffer
       .append(ApiProblem.getProblemFlagsName(getCategory(), getFlags()))
       .append("\n"); // $NON-NLS-1$
   buffer.append("\tmessage id: "); // $NON-NLS-1$
   buffer.append(getMessageid());
   buffer.append("\n\tmessage: "); // $NON-NLS-1$
   buffer.append(getMessage());
   return buffer.toString();
 }