nsPrefix = ( (AbstractConfiguration)element ).getPrefix();
/** * Copy constructor, to create a clone of another configuration. * To modify children, use <code>getChild()</code>, * <code>removeChild()</code> and <code>addChild()</code>. * * @param config the <code>Configuration</code> to copy * @param deepCopy true will cause clones of the children to be added, * false will add the original instances and is thus * faster. * * @throws ConfigurationException if an error occurs when copying */ public DefaultConfiguration( Configuration config, boolean deepCopy ) throws ConfigurationException { this( config.getName(), config.getLocation(), config.getNamespace(), ( (config instanceof AbstractConfiguration) ? ((AbstractConfiguration)config).getPrefix() : "") ); addAll( config, deepCopy ); }
m_location = config.getLocation(); m_namespace = config.getNamespace(); m_prefix = (config instanceof AbstractConfiguration) ? ((AbstractConfiguration)config).getPrefix() : "";