Example #1
0
  public static String getFormTextDescription(MBeanFeatureDoc<?> featureDoc) {
    StringBuilder jmxdoc = new StringBuilder();

    String name = featureDoc.getRawName();
    String description = featureDoc.getDescription();
    if (description != null && !description.equals(name) && !description.trim().isEmpty()) {
      jmxdoc.append("<p>");
      jmxdoc.append(INDENT);
      jmxdoc.append(description);
      jmxdoc.append("</p>");
    }

    return jmxdoc.toString();
  }