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