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