private IPropertySource getSourceForNamespace(INamespace namespace) { Resource key = namespace.getSpecificationLocation(); IPropertySource result = (IPropertySource) _namespaceSources.get(key); if (result == null) { result = createSourceForNamespace(namespace); _namespaceSources.put(key, result); } return result; }
public String getLocalizedComponentProperty(IComponent component, Locale locale, String propertyName) { return getLocalizedSourceForComponent(component).getPropertyValue(propertyName, locale); }
public String getLocalizedNamespaceProperty(INamespace namespace, Locale locale, String propertyName) { return getLocalizedSourceForNamespace(namespace).getPropertyValue(propertyName, locale); }
public String getNamespaceProperty(INamespace namespace, String propertyName) { return getSourceForNamespace(namespace).getPropertyValue(propertyName); }
public String getComponentProperty(IComponent component, String propertyName) { return getSourceForComponent(component).getPropertyValue(propertyName); }
private IPropertySource getSourceForComponent(IComponent component) { Resource key = component.getSpecification().getSpecificationLocation(); IPropertySource result = (IPropertySource) _componentSources.get(key); if (result == null) { result = createSourceForComponent(component); _componentSources.put(key, result); } return result; }
public String getNamespaceProperty(INamespace namespace, String propertyName) { return getSourceForNamespace(namespace).getPropertyValue(propertyName); }
public String getComponentProperty(IComponent component, String propertyName) { return getSourceForComponent(component).getPropertyValue(propertyName); }
private IPropertySource getSourceForComponent(IComponent component) { Resource key = component.getSpecification().getSpecificationLocation(); IPropertySource result = (IPropertySource) _componentSources.get(key); if (result == null) { result = createSourceForComponent(component); _componentSources.put(key, result); } return result; }
private LocalizedPropertySource getLocalizedSourceForNamespace(INamespace namespace) { Resource key = namespace.getSpecificationLocation(); LocalizedPropertySource result = (LocalizedPropertySource) _localizedNamespaceSources.get(key); if (result == null) { result = new LocalizedPropertySource(getSourceForNamespace(namespace)); _localizedNamespaceSources.put(key, result); } return result; }
private LocalizedPropertySource getLocalizedSourceForComponent(IComponent component) { Resource key = component.getSpecification().getSpecificationLocation(); LocalizedPropertySource result = (LocalizedPropertySource) _localizedComponentSources.get(key); if (result == null) { result = new LocalizedPropertySource(getSourceForComponent(component)); _localizedComponentSources.put(key, result); } return result; }
private IPropertySource getSourceForNamespace(INamespace namespace) { Resource key = namespace.getSpecificationLocation(); IPropertySource result = (IPropertySource) _namespaceSources.get(key); if (result == null) { result = createSourceForNamespace(namespace); _namespaceSources.put(key, result); } return result; }
public String getLocalizedComponentProperty(IComponent component, Locale locale, String propertyName) { return getLocalizedSourceForComponent(component).getPropertyValue(propertyName, locale); }
public String getLocalizedNamespaceProperty(INamespace namespace, Locale locale, String propertyName) { return getLocalizedSourceForNamespace(namespace).getPropertyValue(propertyName, locale); }
private LocalizedPropertySource getLocalizedSourceForNamespace(INamespace namespace) { Resource key = namespace.getSpecificationLocation(); LocalizedPropertySource result = (LocalizedPropertySource) _localizedNamespaceSources.get(key); if (result == null) { result = new LocalizedPropertySource(getSourceForNamespace(namespace)); _localizedNamespaceSources.put(key, result); } return result; }
private LocalizedPropertySource getLocalizedSourceForComponent(IComponent component) { Resource key = component.getSpecification().getSpecificationLocation(); LocalizedPropertySource result = (LocalizedPropertySource) _localizedComponentSources.get(key); if (result == null) { result = new LocalizedPropertySource(getSourceForComponent(component)); _localizedComponentSources.put(key, result); } return result; }
private IPropertySource createSourceForComponent(IComponent component) { IComponentSpecification specification = component.getSpecification(); List sources = new ArrayList(); sources.add(new PropertyHolderPropertySource(specification)); sources.add(getSourceForNamespace(component.getNamespace())); return (IPropertySource) _chainBuilder.buildImplementation( IPropertySource.class, sources, ImplMessages.componentPropertySourceDescription(specification)); }
private IPropertySource createSourceForComponent(IComponent component) { IComponentSpecification specification = component.getSpecification(); List sources = new ArrayList(); sources.add(new PropertyHolderPropertySource(specification)); sources.add(getSourceForNamespace(component.getNamespace())); return (IPropertySource) _chainBuilder.buildImplementation( IPropertySource.class, sources, ImplMessages.componentPropertySourceDescription(specification)); }