/** * Returns the configuration property with the specified key. * * @param key the property key. * @return the property value. */ public String getConfigProperty( final String key ) { return getProperty( key ); }
/** * Returns the configuration property with the specified key. * * @param key the property key. * @return the property value. */ public String getConfigProperty(final String key) { return getProperty(key); }
/** * Returns the configuration property with the specified key (or the specified default value if there is no such * property). * <p/> * If the property is not defined in this configuration, the code will lookup the property in the parent * configuration. * * @param key the property key. * @param defaultValue the default value. * @return the property value. */ public String getConfigProperty( final String key, final String defaultValue ) { return getProperty( key, defaultValue ); }
/** * Returns the configuration property with the specified key (or the * specified default value if there is no such property). * <p/> * If the property is not defined in this configuration, the code will * lookup the property in the parent configuration. * * @param key the property key. * @param defaultValue the default value. * @return the property value. */ public String getConfigProperty(final String key, final String defaultValue) { return getProperty(key, defaultValue); }
final String encodingKey = (String) encIt.next(); final String encodingName = encodingConfig.getProperty( PropertyPrinterSpecificationLoader.ENCODING_PREFIX + encodingKey + PropertyPrinterSpecificationLoader.ENCODING_NAME ); final String encodingCharset = encodingConfig.getProperty( PropertyPrinterSpecificationLoader.ENCODING_PREFIX + encodingKey + PropertyPrinterSpecificationLoader.ENCODING_CHARSET ); final String encodingBytes = encodingConfig.getProperty( PropertyPrinterSpecificationLoader.ENCODING_PREFIX + encodingKey + PropertyPrinterSpecificationLoader.ENCODING_BYTES ); final byte[] encodingCode = parseBytes( encodingBytes );
/** * Returns the configuration property with the specified key (or the specified default value if there is no such * property). * <p/> * If the property is not defined in this configuration, the code will lookup the property in the parent * configuration. * * @param key the property key. * @param defaultValue the default value. * @return the property value. */ public String getConfigProperty( final String key, final String defaultValue ) { String value = this.configuration.getProperty( key ); if ( value == null ) { if ( isRootConfig() ) { value = defaultValue; } else { value = this.parentConfiguration.getConfigProperty( key, defaultValue ); } } return value; }
final String printerKey = (String) printerIt.next(); final String printerName = printerConfig.getProperty( PropertyPrinterSpecificationLoader.PRINTER_PREFIX + printerKey + PropertyPrinterSpecificationLoader.PRINTER_NAME ); final String printerCharsets = printerConfig.getProperty( PropertyPrinterSpecificationLoader.PRINTER_PREFIX + printerKey + PropertyPrinterSpecificationLoader.PRINTER_ENCODINGS );
/** * Returns the configuration property with the specified key (or the * specified default value if there is no such property). * <p/> * If the property is not defined in this configuration, the code will * lookup the property in the parent configuration. * * @param key the property key. * @param defaultValue the default value. * @return the property value. */ public String getConfigProperty(final String key, final String defaultValue) { String value = this.configuration.getProperty(key); if (value == null) { if (isRootConfig()) { value = defaultValue; } else { value = this.parentConfiguration.getConfigProperty(key, defaultValue); } } return value; }