Ejemplo n.º 1
0
 private String buildBundleName(String bundleId, String parent, String child) {
   BundleType type = BundleType.getType(bundleId);
   StringBuilder buf =
       new StringBuilder(bundleId.substring(0, (bundleId.indexOf(type.getSuffix()) - 1)));
   if (parent != null) {
     buf.append("-");
     buf.append(parent);
   }
   if (child != null) {
     buf.append("-");
     buf.append(child);
   }
   buf.append(".").append(type.getSuffix());
   return buf.toString();
 }