001package jmri.jmrix.mqtt.configurexml;
002
003import org.jdom2.Element;
004
005/**
006 * Provides load and store functionality for configuring MqttTurnoutManagers.
007 * <p>
008 * Uses the store method from the abstract base class, but provides a load
009 * method here.
010 *
011 * @author Lionel Jeanson Copyright: Copyright (c) 2017
012 */
013public class MqttTurnoutManagerXml extends jmri.managers.configurexml.AbstractTurnoutManagerConfigXML {
014
015    public MqttTurnoutManagerXml() {
016        super();
017    }
018
019    @Override
020    public void setStoreElementClass(Element turnouts) {
021        turnouts.setAttribute("class", "jmri.jmrix.mqtt.configurexml.MqttTurnoutManagerXml");
022    }
023
024    @Override
025    public boolean load(Element shared, Element perNode) {
026        // load individual turnouts
027        return loadTurnouts(shared, perNode);
028    }
029
030    // initialize logging
031//    private final static Logger log = LoggerFactory.getLogger(MqttTurnoutManagerXml.class);
032}