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