001package jmri.jmrix.dccpp.configurexml;
002
003import jmri.configurexml.JmriConfigureXmlException;
004import org.jdom2.Element;
005//import org.slf4j.Logger;
006//import org.slf4j.LoggerFactory;
007
008/**
009 * Provides load and store functionality for configuring DCCppSensorManagers.
010 * <p>
011 * Uses the store method from the abstract base class, but provides a load
012 * method here.
013 *
014 * @author Paul Bender Copyright (c) 2003
015 * @author Mark Underwood Copyright (c) 2015
016 */
017public class DCCppSensorManagerXml extends jmri.managers.configurexml.AbstractSensorManagerConfigXML {
018
019    public DCCppSensorManagerXml() {
020        super();
021    }
022
023    @Override
024    public void setStoreElementClass(Element sensors) {
025        sensors.setAttribute("class", "jmri.jmrix.dccpp.configurexml.DCCppSensorManagerXml");
026    }
027
028    @Override
029    public boolean load(Element sensors) throws jmri.configurexml.JmriConfigureXmlException {
030        // load individual sensors
031        return loadSensors(sensors);
032    }
033
034//    private final static Logger log = LoggerFactory.getLogger(DCCppSensorManagerXml.class);
035
036    @Override
037    public boolean load(Element sharedSensors, Element perNodeSensors) throws JmriConfigureXmlException {
038        return this.loadSensors(sharedSensors);
039    }
040
041}