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