001package jmri.jmrix.rfid.generic.standalone.configurexml;
002
003import org.jdom2.Element;
004import org.slf4j.Logger;
005import org.slf4j.LoggerFactory;
006
007/**
008 * Provides load and store functionality for configuring StandaloneReporterManagers.
009 * <p>
010 * Uses the store method from the abstract base class, but provides a load
011 * method here.
012 *
013 * @author Bob Jacobsen Copyright: Copyright (c) 2008
014 * @author Matthew Harris Copyright (C) 2011
015 * @since 2.11.4
016 */
017public class StandaloneReporterManagerXml extends jmri.jmrix.rfid.configurexml.RfidReporterManagerXml {
018
019    public StandaloneReporterManagerXml() {
020        super();
021    }
022
023    @Override
024    public void setStoreElementClass(Element sensors) {
025        sensors.setAttribute("class", this.getClass().getName());
026    }
027
028    @Override
029    public void load(Element element, Object o) {
030        log.error("Invalid method called");
031    }
032
033    @Override
034    public boolean load(Element shared, Element perNode) {
035        // load individual sensors
036        return loadReporters(shared);
037    }
038
039    private static final Logger log = LoggerFactory.getLogger(StandaloneReporterManagerXml.class);
040}