001package jmri.jmrix.marklin.configurexml;
002
003import org.jdom2.Element;
004import org.slf4j.Logger;
005import org.slf4j.LoggerFactory;
006
007/**
008 * Provides load and store functionality for configuring MarklinTurnoutManagers.
009 * <p>
010 * Uses the store method from the abstract base class, but provides a load
011 * method here.
012 *
013 * @author Bob Jacobsen Copyright: Copyright (c) 2002, 2008
014 */
015public class MarklinTurnoutManagerXml extends jmri.managers.configurexml.AbstractTurnoutManagerConfigXML {
016
017    public MarklinTurnoutManagerXml() {
018        super();
019    }
020
021    @Override
022    public void setStoreElementClass(Element turnouts) {
023        turnouts.setAttribute("class", "jmri.jmrix.marklin.configurexml.MarklinTurnoutManagerXml");
024    }
025
026    @Override
027    public void load(Element element, Object o) {
028        log.error("Invalid method called");
029    }
030
031    @Override
032    public boolean load(Element shared, Element perNode) {
033        // create the master object
034        //MarklinTurnoutManager.instance();
035        // load individual turnouts
036        return loadTurnouts(shared, perNode);
037    }
038
039    private final static Logger log = LoggerFactory.getLogger(MarklinTurnoutManagerXml.class);
040}