001package jmri.profile;
002
003import jmri.util.prefs.JmriConfigurationProvider;
004import org.w3c.dom.Element;
005
006/**
007 *
008 * @author Randall Wood
009 */
010class ProfileConfiguration implements AuxiliaryConfiguration {
011
012    private final Profile project;
013
014    public ProfileConfiguration(Profile project) {
015        this.project = project;
016    }
017
018    @Override
019    public Element getConfigurationFragment(String elementName, String namespace, boolean shared) {
020        return JmriConfigurationProvider.getConfiguration(this.project).getConfigurationFragment(elementName, namespace, shared);
021    }
022
023    @Override
024    public void putConfigurationFragment(Element fragment, boolean shared) {
025        JmriConfigurationProvider.getConfiguration(this.project).putConfigurationFragment(fragment, shared);
026    }
027
028    @Override
029    public boolean removeConfigurationFragment(String elementName, String namespace, boolean shared) {
030        return JmriConfigurationProvider.getConfiguration(this.project).removeConfigurationFragment(elementName, namespace, shared);
031    }
032
033}