private Properties assembleNamespaceProperties(INamespace namespace, Map propertiesMap, Locale locale) { List localizations = findLocalizationsForResource(namespace.getSpecificationLocation(), locale, namespace.getPropertyValue(NAMESPACE_PROPERTIES_NAME)); // Build them back up in reverse order. Properties parent = _emptyProperties; Iterator i = localizations.iterator(); while(i.hasNext()) { ResourceLocalization rl = (ResourceLocalization) i.next(); Locale l = rl.getLocale(); Properties properties = (Properties) propertiesMap.get(l); if (properties == null) { properties = readNamespaceProperties(namespace, l, rl.getResource(), parent); propertiesMap.put(l, properties); } parent = properties; } return parent; }
private Properties assembleNamespaceProperties(INamespace namespace, Map propertiesMap, Locale locale) { List localizations = findLocalizationsForResource(namespace.getSpecificationLocation(), locale, namespace.getPropertyValue(NAMESPACE_PROPERTIES_NAME)); // Build them back up in reverse order. Properties parent = _emptyProperties; Iterator i = localizations.iterator(); while(i.hasNext()) { ResourceLocalization rl = (ResourceLocalization) i.next(); Locale l = rl.getLocale(); Properties properties = (Properties) propertiesMap.get(l); if (properties == null) { properties = readNamespaceProperties(namespace, l, rl.getResource(), parent); propertiesMap.put(l, properties); } parent = properties; } return parent; }
private Properties assembleComponentProperties(IComponent component, Resource baseResourceLocation, Map propertiesMap, Locale locale) List localizations = findLocalizationsForResource(component, baseResourceLocation, locale, component.getSpecification().getProperty(NAMESPACE_PROPERTIES_NAME));
private Properties assembleComponentProperties(IComponent component, Resource baseResourceLocation, Map propertiesMap, Locale locale) List localizations = findLocalizationsForResource(component, baseResourceLocation, locale, component.getSpecification().getProperty(NAMESPACE_PROPERTIES_NAME));