001package jmri.jmrix.internal.configurexml;
002
003import org.jdom2.Element;
004
005/**
006 * Provides load and store functionality for configuring
007 * InternalReporterManagers.
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) 2010
013 * @since 4.3.5
014 */
015public class InternalReporterManagerXml extends jmri.managers.configurexml.AbstractReporterManagerConfigXML {
016
017    public InternalReporterManagerXml() {
018        super();
019    }
020
021    @Override
022    public void setStoreElementClass(Element sensors) {
023        sensors.setAttribute("class", this.getClass().getName());
024    }
025
026    @Override
027    public boolean load(Element shared, Element perNode) {
028        // load individual reporters
029        return loadReporters(shared);
030    }
031
032//    private final static Logger log = LoggerFactory.getLogger(InternalReporterManagerXml.class);
033}