001package jmri.managers.configurexml; 002 003import javax.annotation.Nonnull; 004 005import jmri.InstanceManager; 006 007import org.jdom2.Element; 008 009/** 010 * Store and load data for VariableLightManager. 011 * This class doesn't do anything since all the VariableLights are stored 012 * in the LightManager. /Daniel Bergqvist 013 * 014 * @author Dave Duchamp Copyright (c) 2007 015 * @author Pete Cressman Copyright (C) 2009, 2011 016 * @author Daniel Bergqvist Copyright (C) 2021 017 */ 018public class DefaultVariableLightManagerXml extends jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML { 019 020 public DefaultVariableLightManagerXml() { 021 } 022 023 @Override 024 public Element store(Object o) { 025 // Do nothing. The lights are stored by the LightManager 026 return null; 027 } 028 029 @Override 030 public boolean load(@Nonnull Element sharedConditionals, Element perNodeConditionals) { 031 // Do nothing. The lights are loaded by the LightManager 032 return true; 033 } 034 035 @Override 036 public int loadOrder() { 037 return InstanceManager.getDefault(jmri.VariableLightManager.class).getXMLOrder(); 038 } 039 040// private final static Logger log = LoggerFactory.getLogger(DefaultVariableLightManagerXml.class); 041 042}