001package jmri.jmrix.jmriclient.configurexml;
002
003import org.jdom2.Element;
004
005/**
006 * Provides load and store functionality for configuring
007 * JMRIClientTurnoutManagers.
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 */
014public class JMRIClientTurnoutManagerXml extends jmri.managers.configurexml.AbstractTurnoutManagerConfigXML {
015
016    public JMRIClientTurnoutManagerXml() {
017        super();
018    }
019
020    @Override
021    public void setStoreElementClass(Element turnouts) {
022        turnouts.setAttribute("class", "jmri.jmrix.jmriclient.configurexml.JMRIClientTurnoutManagerXml");
023    }
024
025    @Override
026    public boolean load(Element shared, Element perNode) {
027        // load individual turnouts
028        return loadTurnouts(shared, perNode);
029    }
030
031    // initialize logging
032//    private final static Logger log = LoggerFactory.getLogger(JMRIClientTurnoutManagerXml.class);
033}