/** * Returns the state of a property. * * @param propertyId The property identifier. * * @throws XMLConfigurationException Thrown on configuration error. */ public Object getProperty(String propertyId) throws XMLConfigurationException { return fLoaderConfig.getProperty(propertyId); } // getProperty(String): Object
/** Returns the locale. */ public Locale getLocale() { Locale locale = null; try { locale = (Locale)getProperty(LOCALE); fErrorReporter.setLocale(locale); } catch (Exception e) { // ignore } return locale; } // getLocale():Locale
/** * Returns the value of a property. * * @param propertyId The property identifier. * @return the value of the property * * @throws XMLConfigurationException Thrown for configuration error. * In general, components should * only throw this exception if * it is <strong>really</strong> * a critical error. */ public Object getProperty(String propertyId) throws XMLConfigurationException { if (LOCALE.equals(propertyId)) { return getLocale(); } return super.getProperty(propertyId); }
/** * Returns the value of a property. * * @param propertyId The property identifier. * @return the value of the property * * @throws XMLConfigurationException Thrown for configuration error. * In general, components should * only throw this exception if * it is <strong>really</strong> * a critical error. */ public Object getProperty(String propertyId) throws XMLConfigurationException { if (LOCALE.equals(propertyId)) { return getLocale(); } else if (XML_SCHEMA_VERSION.equals(propertyId)) { return fXSDVersion; } final Object component = fComponents.get(propertyId); if (component != null) { return component; } else if (fComponents.containsKey(propertyId)) { return null; } return super.getProperty(propertyId); }
fInitProperties.put(propertyId, super.getProperty(propertyId));