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