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();
 }
Ejemplo n.º 2
0
 private void startBundlesByType(BundleType type) {
   for (Entry<String, BundleType> entry : BUNDLES.entrySet()) {
     if (type.equals(entry.getValue())) {
       this.startBundle(entry.getKey());
     }
   }
 }
Ejemplo n.º 3
0
 public String toSystem(BundleType code) {
   return code.getSystem();
 }