001package jmri.jmrix.jmriclient.configurexml;
002
003import org.jdom2.Element;
004import org.slf4j.Logger;
005import org.slf4j.LoggerFactory;
006
007/**
008 * Provides load and store functionality for configuring
009 * JMRIClientReporterManagers.
010 * <p>
011 * Uses the store method from the abstract base class, but provides a load
012 * method here.
013 *
014 * @author Bob Jacobsen Copyright: Copyright (c) 2008
015 * @author Paul Bender Copyright: Copyright (c) 2015 
016 */
017public class JMRIClientReporterManagerXml extends jmri.managers.configurexml.AbstractReporterManagerConfigXML {
018
019    public JMRIClientReporterManagerXml() {
020        super();
021    }
022
023    @Override
024    public void setStoreElementClass(Element reporters) {
025        reporters.setAttribute("class", "jmri.jmrix.jmriclient.configurexml.JMRIClientReporterManagerXml");
026    }
027
028    @Override
029    public void load(Element element, Object o) throws jmri.configurexml.JmriConfigureXmlException {
030        log.error("Invalid method called");
031    }
032
033    @Override
034    public boolean load(Element shared, Element perNode) {
035        // load individual reporters 
036        return loadReporters(shared);
037    }
038
039    // initialize logging
040    private final static Logger log = LoggerFactory.getLogger(JMRIClientReporterManagerXml.class);
041}