001package jmri.jmrix.nce.configurexml;
002
003import org.jdom2.Element;
004
005import jmri.configurexml.JmriConfigureXmlException;
006
007/**
008 * Provides load and store functionality for configuring NceSensorManagers.
009 * <p>
010 * Uses the store method from the abstract base class, but provides a load
011 * method here.
012 *
013 * @author Bob Jacobsen Copyright: Copyright (c) 2003
014 */
015public class NceSensorManagerXml extends jmri.managers.configurexml.AbstractSensorManagerConfigXML {
016
017    public NceSensorManagerXml() {
018        super();
019    }
020
021    @Override
022    public void setStoreElementClass(Element sensors) {
023        sensors.setAttribute("class", this.getClass().getName());
024    }
025
026    @Override
027    public boolean load(Element shared, Element perNode) throws JmriConfigureXmlException {
028        // load individual sensors
029        return loadSensors(shared);
030    }
031
032//    private final static Logger log = LoggerFactory.getLogger(NceSensorManagerXml.class);
033}