Example #1
0
 @Override
 public String getId() {
   if (id == null) {
     id = ContributionPersistenceComponent.getComponentName(getName());
   }
   return id;
 }
 @Override
 public String getContent() {
   StringBuilder buf = new StringBuilder(1024 * 32);
   buf.append("<component name=\"")
       .append(ContributionPersistenceComponent.getComponentName(name))
       .append("\" ");
   if (bundle != null) {
     buf.append("bundle=\"").append(bundle).append("\" ");
   }
   buf.append(">\n\n");
   if (description != null) {
     buf.append("<documentation>\n").append(description).append("\n</documentation>\n\n");
   }
   for (String xt : extensions) {
     buf.append(xt).append("\n\n");
   }
   buf.append("</component>\n");
   return buf.toString();
 }