001package jmri.jmrix.secsi.configurexml;
002
003import org.jdom2.Element;
004
005/**
006 * Provides load and store functionality for configuring SerialLightManagers.
007 * <p>
008 * Uses the store method from the abstract base class, but provides a load
009 * method here.
010 * <p>
011 * Based on SerialTurnoutManagerXml.java
012 *
013 * @author Dave Duchamp Copyright (c) 2004, 2007, 2008
014 */
015public class SerialLightManagerXml extends jmri.managers.configurexml.AbstractLightManagerConfigXML {
016
017    public SerialLightManagerXml() {
018        super();
019    }
020
021    @Override
022    public void setStoreElementClass(Element lights) {
023        lights.setAttribute("class", "jmri.jmrix.secsi.configurexml.SerialLightManagerXml");
024    }
025
026    @Override
027    public boolean load(Element shared, Element perNode) {
028        // load individual lights
029        return loadLights(shared);
030    }
031
032//    private final static Logger log = LoggerFactory.getLogger(SerialLightManagerXml.class);
033}