001package jmri.jmrix.marklin.configurexml; 002 003import jmri.configurexml.JmriConfigureXmlException; 004import org.jdom2.Element; 005 006/** 007 * Provides load and store functionality for configuring MarklinSensorManagers. 008 * <p> 009 * Uses the store method from the abstract base class, but provides a load 010 * method here. 011 * 012 * @author Bob Jacobsen Copyright: Copyright (c) 2002, 2008 013 */ 014public class MarklinSensorManagerXml extends jmri.managers.configurexml.AbstractSensorManagerConfigXML { 015 016 public MarklinSensorManagerXml() { 017 super(); 018 } 019 020 @Override 021 public void setStoreElementClass(Element sensors) { 022 sensors.setAttribute("class", "jmri.jmrix.marklin.configurexml.MarklinSensorManagerXml"); 023 } 024 025 @Override 026 public boolean load(Element shared, Element perNode) throws JmriConfigureXmlException { 027 // create the master object 028 //MarklinSensorManager.instance(); 029 // load individual sensors 030 return loadSensors(shared); 031 } 032 033// private final static Logger log = LoggerFactory.getLogger(MarklinSensorManagerXml.class); 034}