/** * Returns the value of the attribute specified by its name as a * <code>double</code>. * * @param name the name of the attribute * @param defaultValue the default value to return if value malformed or empty * @return the value */ public double getAttributeAsDouble( final String name, final double defaultValue ) { try { return getAttributeAsDouble( name ); } catch( final ConfigurationException ce ) { return defaultValue; } }