001package jmri.jmrix.rfid.configurexml; 002 003import jmri.configurexml.JmriConfigureXmlException; 004import org.jdom2.Element; 005 006/** 007 * Provides load and store functionality for configuring RfidSensorManagers. 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) 2003, 2006, 2007, 2008 013 * @author Matthew Harris Copyright (C) 2011 014 * @since 2.11.4 015 */ 016public class RfidSensorManagerXml extends jmri.managers.configurexml.AbstractSensorManagerConfigXML { 017 018 public RfidSensorManagerXml() { 019 super(); 020 } 021 022 @Override 023 public void setStoreElementClass(Element sensors) { 024 sensors.setAttribute("class", this.getClass().getName()); 025 } 026 027 @Override 028 public boolean load(Element shared, Element perNode) throws JmriConfigureXmlException { 029 // load individual sensors 030 return loadSensors(shared); 031 } 032 033// private static final Logger log = LoggerFactory.getLogger(RfidSensorManagerXml.class); 034}