001package jmri.jmrix.can.cbus.configurexml; 002 003import org.jdom2.Element; 004 005/** 006 * Provides load and store functionality for configuring CbusLightManagers. 007 * <p> 008 * Uses the store method from the abstract base class, but provides a load 009 * method here. 010 * 011 * @author Matthew Harris Copyright (c) 2015 012 */ 013public class CbusLightManagerXml extends jmri.managers.configurexml.AbstractLightManagerConfigXML { 014 015 public CbusLightManagerXml() { 016 super(); 017 } 018 019 /** 020 * {@inheritDoc} 021 */ 022 @Override 023 public void setStoreElementClass(Element lights) { 024 lights.setAttribute("class", "jmri.jmrix.can.cbus.configurexml.CbusLightManagerXml"); 025 } 026 027 /** 028 * {@inheritDoc} 029 */ 030 @Override 031 public boolean load(Element shared, Element perNode) { 032 // load individual lights 033 return loadLights(shared); 034 } 035 036// private final static Logger log = LoggerFactory.getLogger(CbusLightManagerXml.class); 037} 038 039