001package jmri.jmrix.dcc4pc.configurexml;
002
003import org.jdom2.Element;
004
005/**
006 * Provides load and store functionality for configuring Dcc4PcReporterManagers.
007 * <p>
008 * Uses the store method from the abstract base class, but provides a load
009 * method here.
010 *
011 * @author Kevin Dickerson Copyright: (c) 2012
012 * @author Bob Jacobsen Copyright: Copyright (c) 2002, 2008
013 */
014public class Dcc4PcReporterManagerXml extends jmri.managers.configurexml.AbstractReporterManagerConfigXML {
015
016    public Dcc4PcReporterManagerXml() {
017        super();
018    }
019
020    @Override
021    public void setStoreElementClass(Element reporter) {
022        reporter.setAttribute("class", "jmri.jmrix.dcc4pc.configurexml.Dcc4PcReporterManagerXml");
023    }
024
025    @Override
026    public boolean load(Element shared, Element perNode) {
027        // create the master object
028        //Dcc4PcReporterManager.instance();
029        // load individual sensors
030        return loadReporters(shared);
031    }
032
033//    private final static Logger log = LoggerFactory.getLogger(Dcc4PcReporterManagerXml.class);
034}