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