private Map<String, Object> getAttributes(ParameterizedAttribute attribs) { Map<String, Object> atts = new HashMap<String, Object>(); for (String key : attribs.getAttributes().keySet()) { Parameter param = attribs.getAttribute(key); atts.put(key.trim(), param.getValue().toString().trim()); } return atts; }
public String getBundleSymbolicName() { String symbolicName = null; ParameterizedAttribute parameters = parseSymbolicName(); if (parameters != null) symbolicName = parameters.getAttribute(); else if (getBundleManifestVersion() == 1) symbolicName = ANONYMOUS_BUNDLE_SYMBOLIC_NAME; return symbolicName; }
addFragmentHostCapability(symbolicName, bundleVersion, atts, dirs); } else { String hostName = fragmentHost.getAttribute(); addIdentityCapability(symbolicName, bundleVersion, IDENTITY_TYPE_FRAGMENT, idatts, iddirs); Map<String, Object> atts = getAttributes(fragmentHost); if (requireBundles != null && requireBundles.isEmpty() == false) { for (ParameterizedAttribute attr : requireBundles) { String name = attr.getAttribute(); Map<String, Object> atts = getAttributes(attr); Map<String, String> dirs = getDirectives(attr);